|
|
|
|
|
by asveikau
2363 days ago
|
|
The P in pthread is the P from Posix which stands for portable. Now, the "zero syscalls for uncontended pthread mutices via futex" optimization is Linux specific and may not be replicated elsewhere. Or it may. It's not Posix, but I know for instance win32 critical sections look a lot like spinlocks when not contended but do syscalls to block, which sounds a lot like a futex. So that would put that technique as dating to the 1990s at the latest. Futex landed in 2002. |
|
What’s your point here? Posix is portable across posix compliant systems, it is not portable beyond that.
There are many systems that are posix, but Rust targets more than that.