Michail Turovskiy
2005-10-11 01:04:09 UTC
For the semaphore queues, is there any restriction on them being FIFO?
When processes get added to a particular semaphore's wait queue, should
we preserve the order they came in so that the process that called P()
next will be the one that gets the semaphore? Or can we just pick the
process with the highest priority to get the semaphore, regardless of
the actual ordering?
Thanks,
m.t.
When processes get added to a particular semaphore's wait queue, should
we preserve the order they came in so that the process that called P()
next will be the one that gets the semaphore? Or can we just pick the
process with the highest priority to get the semaphore, regardless of
the actual ordering?
Thanks,
m.t.