Get the latest tech news

The Fastest Mutexes


Cosmopolitan Libc has the fastest most efficient mutexes for contended workloads.

Mark was so impressed by Microsoft's SRWLOCK that he went on to recommend Linux and FreeBSD users consider targeting Windows if mutex contention is an issue. So on MacOS ARM, Cosmopolitan uses a simpler algorithm based on Ulrich Drepper's " Futexes Are Tricky" paper that basically just farms out all the heavy lifting to XNU's ulock system calls. Funding for The Fastest Mutex was crowdsourced from Justine Tunney's GitHub sponsors and Patreon subscribers, the backing of Mozilla's MIECO program, and the generous contributions of our developer community on Discord.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Fastest Mutexes

Fastest Mutexes