Hacker News new | ask | show | jobs
by menaerus 196 days 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.