Interrupt python thread
wicijowski at gmail.com
Mon Aug 25 09:17:16 CEST 2008
On 24 Sie, 10:48, BlueBird <p... at freehackers.org> wrote:
> Whenever an exception occurs, in the master thread or in one of the
> slave threads, I would like to interrupt all the threads and the main
> program. Threading API does not seem to provide a way to stop a
> thread, is there anyway to achieve that ?
Note that killing, stopping, suspending and resuming Your thread at
arbitrary time leads to unpredictable results. For this reason i.e.
Java deprecated all such functions, and python didn't introduce them
at all. It makes sense as it leads to better-designed-code.
More information about the Python-list