How do you want to determine the sequence number?
Is atomic_inc_return() on a per-semaphore array counter sufficiently fast?
What is the oracle workload, which multi-sembuf operations does it use?
How many semaphores are in one array?
When the last optimizations were written, I've searched a bit:
- postgres uses per-process semaphores, with small semaphore arrays.
[process sleeps on it's own semaphore and is woken up by someone
else when it can make progress]
- with google, I couldn't find anything relevant that uses multi-sembuf
semop() calls.
And I agree with Nick: We should be careful about changing the API.
--
Manfred
--