threads

Aahz Maruch aahz at panix.com
Thu May 24 12:02:11 EDT 2001


In article <T1wO6.7071$CD5.2628025 at news2.rdc2.tx.home.com>,
lrobb <lrobb at home.com> wrote:
>
>I have a global timer thread that cycles an event every 20 minutes.
>When I stop the program via (Ctrl-C), this thread doesn't die.
>How can I stop him?

David Bolen gave you some good responses.  If you want the timer thread
to clean up faster, it should check its event queue more frequently,
perhaps once every ten seconds.  (In the grand scheme of things, this
will add a miniscule load to your program.)
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"You do not make history; you can only hope to survive it."  --G'kar



More information about the Python-list mailing list