February 2006
Intermediate to advanced
648 pages
14h 53m
English
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:
activeCount()Returns the number of currently active Thread objects.
currentThread()Returns the Thread object corresponding to the caller’s thread of control.
enumerate()Returns a list of all currently active Thread objects.
local()Returns a local object that allows for the storage of thread-local data. This object is guaranteed to be unique in each thread.
setprofile(func)Sets a profile function that will be used for all threads created. func is passed to sys.setprofile() before each thread starts running. ...
Read now
Unlock full access