logging from time critical tasks -- QueueListener().stop() takes the whole CPU

dieter dieter at handshake.de
Mon Jul 16 00:55:59 EDT 2018


Gerlando Falauto <gerlando.falauto at gmail.com> writes:
> ...
> Why is the main thread taking up so much CPU?
> I believe at this point listener.stop() should only be waiting for the helper thread to terminate, which I reckon would be implemented by waiting on a semaphore or something (i.e. iowait i.e. 0% CPU).

Maybe, you look at the source code of "listener.stop"?



More information about the Python-list mailing list