Re:Semaphores are surprisingly versatile
by asveikau on Tuesday March 17, 2015 @01:26AM
(#9216414)
Seems like that's what any sane modern user space sync primitives would do: do the atomic ops in user space for the fast path, enter the kernel when it's time to block. Like the "futex" in Linux.
I suppose it is a fair point that the thing you use to enter the kernel doesn't have to be itself a semaphore.
I suppose it is a fair point that the thing you use to enter the kernel doesn't have to be itself a semaphore.