faqts : Computers : Programming : Languages : Python : Common Problems : Threads

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 37 people (54%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

Does Python support multi-threading?
What are the thread and threading modules for?

Jun 7th, 2000 10:09
unknown unknown, Thomas Wouters


Yep.  Python does support multi-threading.

Multi-threading :-) the 'thread' module is the low-level thread 
interface, whereas the threading module is a higher-level, more 
object-oriented, Java-inspired (I do believe) interface. Threading is 
fairly basic, however, and not very widely available (partly because not 
all platforms support (proper) threading, and partly because it has to 
be explicitly enabled by whoever compiles Python, on the target machine.