Shutting down a cross-platform multithreaded app

Marko Rauhamaa marko at pacujo.net
Fri Sep 18 22:40:14 CEST 2015


"James Harris" <james.harris.1 at gmail.com>:

> I have a multithreaded app that I want to be able to shut down easily
> such as by hitting control-c or sending it a signal.

The problem with threads is you cannot cause them to exit from the
outside. You can do that to asyncio coroutines, however. Maybe you
should consider porting your multithreaded app to asyncio.


Marko


More information about the Python-list mailing list