Stopping a python thread
cullman at my-deja.com
cullman at my-deja.com
Wed Oct 18 19:48:13 EDT 2000
>
> What do you need to do this for? The standard response is that the
> spawned thread should determine when it should stop processing work
and
> execute a "return". That will kill the thread automatically. There
are
> a variety of ways of signalling the thread to exit.
I have an application that spawns a number of threads, basically
it is talking to/handling a bunch of different clients and
servers. I would like that have a generic way of killing one
of these threads, without having to make every function I want
running on a thread be checking an event in some sort of cycle.
I know I could use a signal under linux, but I don't think that
this would be portable.
Any ideas?
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list