News for hackers. Stuff that matters.
Re:A collection of lock-free data structures written in stan... by kevincox on Wednesday May 10, 2023 @08:57AM (#35886664)
Definitely not. I don't think there any many standard libraries that use syscalls for every lock. It is near universal to attempt a lock in user space (maybe even spin a few times) and only call the kernel if you need to wait. So low-contention locks should very rarely make a syscall.
Re:A collection of lock-free data structures written in stan... by adzm on Wednesday May 10, 2023 @09:28AM (#35887050)
Critical sections in Windows certainly behave this way with a configurable spin count.