2 ms·
Mutexes in Linux are implemented on top of futex, and on Windows on top of WaitForAddress. Uncontested futex (as well as WaitForAddress) never goes to kernel, p
by Iwan-Zotow 7y ago
Mutexes in Linux are implemented on top of futex, and on Windows on top of WaitForAddress. Uncontested futex (as well as WaitForAddress) never goes to kernel, pure userspace code and in hot path it is quite fast
https://devblogs.microsoft.com/oldnewthing/20170601-00/?p=96265 https://devblogs.microsoft.com/oldnewthing/20170601-00/?p=96...