[Tutor] Threads

Terry Carroll carroll at tjc.com
Tue Nov 16 03:34:11 CET 2004

On Mon, 15 Nov 2004, Tim Peters wrote:

> [Kent Johnson]
> >> If the threads are marked as daemon threads (call
> >> thread.setDaemon(True)) then Python will exit even if the thread is
> >> still alive.
> [Terry Carroll]
> > That's what I thought.  That's the opposite of what I want to have
> > happen.  I want the app to exit, and the threads it started to go away;
> > they're done.
> That's probably what *will* happen.  

If that's what happens, great.  I just don't want either the threads to 
stay around (if I make them daemons) or for the application to hang rather 
than exit.

I suppose I could just write an app that starts a thread and exits without 
shutting it down, to see if it hangs, huh?

More information about the Tutor mailing list