|
|
|
|
|
by tialaramex
646 days ago
|
|
Since they mention "a few decades ago" I'm guessing it's a very different mutex than the one you'd use today. Today I believe all of these operating systems (except MacOS, LOL) have either futex or an equivalent technology (the Windows thing works on bytes rather than aligned 32-bit values, so that's cool) and so it seems like only contention could be more expensive as the whole point of a futex is that uncontended acquisition is a single CPU store and that's userspace, the kernel is nowhere near it. |
|