stopping threads
Aahz Maruch
aahz at netcom.com
Mon Jun 26 17:36:34 EDT 2000
In article <3957C1DC.E7C77E2E at sec.noaa.gov>,
j vickroy <jvickroy at sec.noaa.gov> wrote:
>
>This may not be a Python question per se, but ...
>
>Why is there no stop_execution() function/method in either the thread or
>the threading modules? It seems that if I want to stop an executing
>(sub)process, I must launch it using os.fork() which is platform
>specific.
I'm currently reading up on Java threads, and while such a function
exists, the authors recommend very strongly against doing so. Instead,
your thread should watch for some condition and return/exit from its
main function/method when that condition becomes true.
--
--- Aahz (Copyright 2000 by aahz at netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
The best way to get information on Usenet is not to ask a question,
but to post the wrong information. --Aahz
More information about the Python-list
mailing list