Daemonic threads

Fredrik Lundh fredrik at pythonware.com
Tue Nov 16 03:15:50 EST 1999

David S. <I at DONT.LIKE.SPAM> wrote:
> I'm writing a CGI script that will launch a long-running process in the
> background, and return some HTML page to the browser.  Now, I know how
> to do that with 'fork()', but it seems to me that I should be able to do
> the same thing with a daemonic thread from the 'threading' module.

daemon threads die when the python interpreter is shut
down, just like daemon processes die when the operating
system is shut down.  there's no way for a thread to out-
live the hosting process.


<!-- (the eff-bot guide to) the standard python library:
(news: just posted an errata for the 'first printing') -->

More information about the Python-list mailing list