Terminate a thread that doesn't check for events

Jp Calderone exarkun at divmod.com
Tue Aug 2 11:49:31 EDT 2005


On Tue, 2 Aug 2005 09:51:31 -0400, Liu Shuai <lshuai at kaneva.com> wrote:
>Can someone please comment on this?
>
> [snip - how to stop a thread without its cooperation?]

There's no way to do this with threads, sorry.

Perhaps you could use a child process, instead.  Those are typically easy to terminate at arbitrary times.

Jp



More information about the Python-list mailing list