logoalt Hacker News

menaerus12/08/20250 repliesview on HN

> 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.