Boost logo

Boost :

From: Anthony Williams (anthony_w.geo_at_[hidden])
Date: 2006-10-26 06:04:16


"Cory Nelson" <phrosty_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk