Gerlando Falauto <gerlando.fala...@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"? -- https://mail.python.org/mailman/listinfo/python-list