[Tutor] Threads

Terry Carroll carroll at tjc.com
Tue Nov 16 07:24:48 CET 2004


On Mon, 15 Nov 2004, Tim Peters wrote:

> To determine whether your OS kills a daemon thread when Python exits,
> try something like this:

 [thread-fu example deleted for brevity]

> If you see an unending parade of "thread still running" lines after
> you see "main thread going away now", then your OS is not killing the
> thread.

Thanks for this.  It looks like my OS kills the thread.

And, as you know doubt knew, if I don't make it a daemon, it won't exit.



More information about the Tutor mailing list