Event() Create a shared
_thread.interrupt_main() Raise a
acquire(blocking=True, timeout=None) Acquire a semaphore. When invoked without arguments: if
class queue.PriorityQueue(maxsize=0) Constructor for a priority queue. maxsize is an integer that sets the upperbound
threading.main_thread() Return the main Thread object. In normal conditions, the main thread is the thread from
Source code: Lib/_dummy_thread
_thread.get_ident() Return the ‘thread identifier’ of the current thread. This is a nonzero integer. Its value has no direct
cancel() Stop the timer, and cancel the execution of the timer’s action. This will only work if the timer is still in its waiting
wait(timeout=None) Pass the barrier. When all the threads party to the barrier have called this function, they are all released
Barrier(parties[, action[, timeout]]) Create a shared
Page 1 of 29