Killing Threads
Robert Rawlins - Think Blue
robert.rawlins at thinkbluemedia.co.uk
Wed May 2 04:28:57 EDT 2007
Thanks for this Diez and Tim,
I'll take a look into this today, sorry for not posting any code fragments,
its not so much a fragment as it is a bloody great big monster :-D
Rob
-----Original Message-----
From: python-list-bounces+robert.rawlins=thinkbluemedia.co.uk at python.org
[mailto:python-list-bounces+robert.rawlins=thinkbluemedia.co.uk at python.org]
On Behalf Of Diez B. Roggisch
Sent: 02 May 2007 09:05
To: python-list at python.org
Subject: Re: Killing Threads
> 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
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list