Message250562
threading.Condition.wait(timeout=x) is implemented in python 2 as a semi-busy loop which causes cpu wakeups and unexpected cpu use.
I think this is somewhat problematic since it causes problems in all modules which use that method, such as Queue.get() when used with a timeout.
This issue has been reported and "fixed" in red hat based distributions in a way which i find problematic, as detailed here:
https://bugzilla.redhat.com/show_bug.cgi?id=1230802
The attached patch backports the following change from py3 to fix the problem:
https://hg.python.org/cpython/rev/01d1fd775d16/ |
|
Date |
User |
Action |
Args |
2015-09-13 13:40:44 | flavio | set | recipients:
+ flavio, pitrou |
2015-09-13 13:40:42 | flavio | set | messageid: <1442151642.39.0.456899707142.issue25084@psf.upfronthosting.co.za> |
2015-09-13 13:40:42 | flavio | link | issue25084 messages |
2015-09-13 13:40:42 | flavio | create | |
|