Guaranteed semaphore order?
Posted
by Steve_
on Stack Overflow
See other posts from Stack Overflow
or by Steve_
Published on 2010-03-31T14:56:39Z
Indexed on
2010/03/31
15:13 UTC
Read the original article
Hit count: 495
The documentation for the .NET Semaphore class states that:
There is no guaranteed order, such as FIFO or LIFO, in which blocked threads enter the semaphore.
In this case, if I want a guaranteed order (either FIFO or LIFO), what are my options? Is this something that just isn't easily possible? Would I have to write my own Semaphore? I assume that would be pretty advanced?
Thanks,
Steve
© Stack Overflow or respective owner