Killing Threads
Diez B. Roggisch
deets at nospam.web.de
Wed May 2 04:04:32 EDT 2007
> You probably need to setDaemon (True) on your threads
> after you've created them and before they run. That
> tells the OS: don't bother waiting for these ones to
> finish if the program exits. (At least I think that's
> what it does; I don't use threads all that much)
Actually all it does is to tell the at_exit-handler that it's ok to
terminate even though there are still some threads. The OS isn't
concerned with this.
Diez
More information about the Python-list
mailing list