title: Accessing information of all my threads via a function
body: <p>I am working in the domain of Intelligent Vehicles and I am using threading. Basically, every vehicle is a thread and I want to implement a strategy for collision avoidance. For this, I need to access the information from both the thread, probably through a function that takes both the threads as inputs and keeps track of their position. When the absolute value of their position difference is less than or equal to threshold, one of the vehicles should stop. How can I access the information of both my threads in an easy way?</p>