
26 Oct
2006
26 Oct
'06
10:04 a.m.
"Cory Nelson" <phrosty@gmail.com> writes:
Is there a reason for wanting a priority? Why not make the lock fair. I'd rather have locks take out a ticket so everything is processed in a FIFO order, with no starvation.
I think it would be better with no priority, too. I'm working on an algorithm for that. FIFO means that the OS has no say in the wakeup order; it'd be better if all the waiting threads could block on the same OS sync object, so the OS gets to choose which to wake. Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk