PDA

View Full Version : [Questions] how to detect the status of a python thread?



3togo
March 19th, 2007, 05:50 PM
Could anyone kind enough to tell me how to determine the status of a python thread started by "thread.start_new_thread". How to tell whether the thread is still running or not

Many thanks

thumper
March 20th, 2007, 11:26 PM
From a quick read of the docs it seems like you can't.

However check out the threading module, and specifically the Thread object. You'll probably find that this gives you the functinality that you are after.

pmasiar
March 21st, 2007, 04:38 AM
you may want to ask Real Python Gurus on python-users mailing list on python.org, maybe you have better luck.