How to kill a thread from another thread ?
Oleg Broytmann
phd at phd.russ.ru
Thu Nov 9 10:58:38 EST 2000
On 9 Nov 2000, Aahz Maruch wrote:
> You don't. You need to set up each of your threads so that they look
> for some kind of signal to kill themselves (which means returning). It
> has been argued that the ability to kill threads is necessary for server
> applications, but I haven't seen any powerful arguments in favor of that.
How does a thread would kill itself if it hangs in some syscall
(socket.read(), e.g.)?
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list