killing thread ?

Uwe Schmitt uwe.schmitt at procoders.net
Fri Jan 24 04:35:56 EST 2003


Hi,

AFAIK there is no method in the threading module to kill a thread.
Each thread has to terminate itself by watching status variables.
But: what happens if I start a thread, and when I want to kill
this thread, I delete all references to the according Thread object,
and call the garbage collector. 
Will this work ??

My motivation is to watch some functions, where I have no
access to the functions implementation. 

And another question: how fast is the garbage collector ?


Greetings, Uwe.

-- 
Dr. rer. nat. Uwe Schmitt      Computer science is no more about Computers,
uwe.schmitt at num.uni-sb.de      than astronomy is about telescopes. (Dijkstra)
http://www.procoders.net           




More information about the Python-list mailing list