Author loewis
Recipients beazley, dabeaz, flox, kristjan.jonsson, loewis, pitrou, r.david.murray, techtonik, torsten
Date 2010-04-18.15:39:48
SpamBayes Score 1.19819e-05
Marked as misclassified No
Message-id <4BCB27C3.8040904@v.loewis.de>
In-reply-to <1271345993.52.0.689698262359.issue8299@psf.upfronthosting.co.za>
Content
> Martin, I don't know if you were suggesting that a "fair" mutex would
> make the emulated semaphore fair too.  You probably weren't, but just
> in case, the fairness of the mutex is immaterial because it is only
> held for a short time to guard the internal state of the "semaphore".
> You won't see threads queing up on it, but they will queue on the
> Contition variable.

Exactly so. I still don't see why you then infer that the GIL is unfair.
It is not IF THE CONDITION VARIABLE IS FAIR. As I said, some
implementations of condition variables *are* fair, e.g. the Linux one
(which in itself isn't really relevant here, because Linux uses the
semaphore GIL, anyway). However, it remains unclear why you think that
the GIL is not fair in pthreads.
History
Date User Action Args
2010-04-18 15:39:51loewissetrecipients: + loewis, beazley, pitrou, kristjan.jonsson, techtonik, r.david.murray, flox, dabeaz, torsten
2010-04-18 15:39:49loewislinkissue8299 messages
2010-04-18 15:39:49loewiscreate