[issue15038] Optimize python Locks on Windows

Antoine Pitrou report at bugs.python.org
Tue Jun 19 17:07:05 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> > The implementation for multiprocessing.Condition is virtually the same
> > as Listing 3 which the author says he thinks is "formally correct" but
> > with "a fundamental performance problem".
> 
> To me, it seems similar to the last listing (under "The Sequel—NT and
> PThreads"): there's a separate semaphore per waiter, used to wake it up
> when signal() or broadcast() is called.

Ah, you said multiprocessing.Condition. Sorry. I was thinking about
threading.Condition.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15038>
_______________________________________


More information about the Python-bugs-list mailing list