stopping threads
Aahz Maruch
aahz at netcom.com
Mon Jun 26 21:43:29 EDT 2000
[BTW, please keep attributions; they make it easier to follow threads]
In article <etdg0q0hqvt.fsf at w20-575-109.mit.edu>,
Alex <cut_me_out at hotmail.com> wrote:
>Attribution restored for Aahz:
>>
>> 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.
>
>Do they say why?
I don't remember off-hand, but assume it's essentially the same reason
you avoid using "kill -9" (or the equivalent) to end actual processes.
Too much chance of improper cleanup, if nothing else.
--
--- 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