No threading.start_new_thread(), useful addition?
Christian Heimes
lists at cheimes.de
Thu Oct 8 11:33:54 EDT 2009
Hendrik van Rooyen wrote:
> What does the Threading module buy me, other than a formal OO approach?
* the interpreter won't know about your thread when you bypass the
threading module and use the thread module directly. The thread isn't in
the list of active threads and the interpreter is unable to wait for the
thread to exit when Python shuts down. All threads created by the thread
module behave like daemonic threads.
* exception reporting doesn't work with thread.start_new_thread
* profiling and tracing doesn't work with thread.start_new_thread
* introspection of active thread doesn't work because threads started by
thread.start_new_thread are invisible for the rest of the interpreter
* you have to roll your own system to join a thread
* probably more stuff
In Python 3.0 the thread module has been renamed to _thread in order to
reflect the nature of the C extension.
Christian
More information about the Python-list
mailing list