killing thread ?

Martin v. Löwis martin at v.loewis.de
Fri Jan 24 05:16:48 EST 2003


Uwe Schmitt <uwe.schmitt at procoders.net> writes:

> AFAIK there is no method in the threading module to kill a thread.

Correct.

> Will this work ??

No. The Thread object is just a wrapper around the underlying system
resource. Deleting the Thread object won't kill the thread, since
thread cancellation is not supported.

> And another question: how fast is the garbage collector ?

Answer: very fast :-)

Regards,
Martin




More information about the Python-list mailing list