stopping threads

Ken Walter kgw-zamboni-news at stiscan.com
Mon Jun 26 21:49:59 EDT 2000


On Wed, 26 Jun 2000 21:08:54, Alex <cut_me_out at hotmail.com> wrote:

>
>> 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?
>
Cleaning up resources and closing files properly.
It is always safer to "send a message" to the thread/process
and let it terminate itself.  Only misbehaving ones should be 
terminated from
the outside and then fixed.

>Alex.

Ken Walter

Remove -zamboni to reply
All the above is hearsay and the opinion of no one in particular






More information about the Python-list mailing list