Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16624

Python Multi-threading - How to kill all child threads when one of them raise an exception or failed

$
0
0

Depending on the needs of the program, I used multi-threads within a sub-thread for parallel tasking. In this "deep" multi-threading, potential problems such as timeouts and failures may be encountered.

I would like to ask, how to kill all child threads (known as "deep" multi-threading above) when one of them raise an exception or failed.


Viewing all articles
Browse latest Browse all 16624

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>