3 ms·
The most common implementation of mutexes using futex() is that the userland simply spins a while waiting to acquire the mutex (just atomic operations, no syste
by kccqzy 6y ago
The most common implementation of mutexes using futex() is that the userland simply spins a while waiting to acquire the mutex (just atomic operations, no system call). After a while the userland gives up spinning and makes the system call.
- bogomipz 6y agoThanks this implementation detail is helpful. Cheers.