threading: how to kill a (possibly blocked) thread?

rturpin at my-deja.com rturpin at my-deja.com
Wed Jan 17 14:31:08 EST 2001


In article <944mvr$9ns$1 at nntp6.u.washington.edu>,
  Donn Cave <donn at u.washington.edu> wrote:
> For me, thread dispatch from an event loop is really
> the only way to go in a seriously multi-threaded system. ..

Yep. That works great, with trusted code. You know
the event responses are short, and return, so there
is no need for the threads to do anything except
respond to events in their queue. Put in a "stop"
event, and it will do what you want. The problem is:
What if you don't fully trust the code? See my post
on guarding execution time.

Russell


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list