The threading module provides high-level thread support with a Thread class and classes for various synchronization primitives. It’s built using the lower-level thread module.
The following utility functions are available:
Returns the number of currently active Thread objects.
Returns the Thread object corresponding to the caller’s thread of control.
Returns a list of all currently active Thread objects.
Returns a local object that allows for the storage of thread-local data. This object is guaranteed to be unique in each thread.
Sets a profile function that will be used for all threads created. func is passed to sys.setprofile() before each thread starts running. ...