|
|
|
|
|
by javert
4862 days ago
|
|
I'm not certain, but I guess pthread mutexes probably use userspace mutexes under the covers. Correct. man 7 pthreads states: In NPTL, thread synchronization primitives (mutexes, thread joining, and so on) are implemented using the Linux futex(2) system call. A futex is a mutex that only does a system call if there is contention; you can google it. |
|