2 ms·
> There is a reason default lock implementations from OS don't spin even a little bit. glibc pthread mutex uses a user-space spinlock to mitigate the syscall c
by menaerus 11mo ago
> There is a reason default lock implementations from OS don't spin even a little bit.
glibc pthread mutex uses a user-space spinlock to mitigate the syscall cost for uncontended cases.