by jcelerier · 9y ago · 0 comments
If you ever used pthread_mutex with glibc then you use spinlocks without knowing it. The implementation spins for some time before going for a full kernel mutex.
"Mutex" on the other hand might have a fast-path that spins a few times before inserting the thread onto a wait list.