David Beazley <d...@dabeaz.com> added the comment:

I hope everyone realizes that all of this bike-shedding about emulated 
semaphores versus "real" semaphores is mostly a non-issue.  For one thing,  go 
look at how a "real" semaphore is implemented by reading the source code to 
pthreads or some other thread library.  You'll find that semaphores are 
implemented using the exact same mechanisms that underly condition variables 
and in some cases, are actually implemented using a mutex lock and a condition 
variable exactly as Python is doing.

Second, the performance of using "real" semaphores still sucks.   So, all of 
the arguing about "fairness" and whatnot seems to be a total waste of time in 
my opinion because it doesn't address the underlying problem.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to