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

2018-07-16 Thread Cameron Simpson
On 16Jul2018 08:33, Thomas Jollans wrote: On 16/07/18 08:24, Gerlando Falauto wrote: On Monday, July 16, 2018 at 8:13:46 AM UTC+2, Thomas Jollans wrote: On 16/07/18 07:39, Gerlando Falauto wrote: On Monday, July 16, 2018 at 6:56:19 AM UTC+2, dieter wrote: ... Why is the main thread taking

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

2018-07-16 Thread Thomas Jollans
On 16/07/18 08:24, Gerlando Falauto wrote: > On Monday, July 16, 2018 at 8:13:46 AM UTC+2, Thomas Jollans wrote: >> On 16/07/18 07:39, Gerlando Falauto wrote: >>> On Monday, July 16, 2018 at 6:56:19 AM UTC+2, dieter wrote: > ... > Why is the main thread taking up so much CPU? > I

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

2018-07-16 Thread Gerlando Falauto
On Monday, July 16, 2018 at 8:13:46 AM UTC+2, Thomas Jollans wrote: > On 16/07/18 07:39, Gerlando Falauto wrote: > > On Monday, July 16, 2018 at 6:56:19 AM UTC+2, dieter wrote: > >>> ... > >>> Why is the main thread taking up so much CPU? > >>> I believe at this point listener.stop() should only

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

2018-07-16 Thread Thomas Jollans
On 16/07/18 07:39, Gerlando Falauto wrote: > On Monday, July 16, 2018 at 6:56:19 AM UTC+2, dieter wrote: >>> ... >>> 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

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

2018-07-15 Thread Gerlando Falauto
On Monday, July 16, 2018 at 6:56:19 AM UTC+2, dieter wrote: > > ... > > 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

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

2018-07-15 Thread dieter
Gerlando Falauto 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,

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

2018-07-14 Thread Gerlando Falauto
Hi, I'm adding logging to a time critical task running resource-constrained hardware (Raspberry Pi). I read about the QueueListener/QueueHandler in: https://docs.python.org/3/howto/logging-cookbook.html#dealing-with-handlers-that-block and I'm trying to understand how it really works and