[issue8410] Fix emulated lock to be 'fair'

Antoine Pitrou report at bugs.python.org
Fri Apr 16 01:09:31 CEST 2010


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

I don't understand why you claim your patched version is fair. As far as I can tell, if you have three threads A, B and C all routinely trying to take this lock, your implementation can perfectly well bounce between A and B without ever giving the lock to C.

----------
nosy: +pitrou
priority:  -> normal
type:  -> behavior
versions: +Python 3.2 -Python 2.7

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


More information about the Python-bugs-list mailing list