|
|
|
|
|
by senderista
299 days ago
|
|
The WTF::ParkingLot example is interesting because it shows that you don't actually need futexes in the kernel to implement them efficiently; you just need something like a spinlock (with sane backoff!) to guard the userspace wait queue and a per-thread eventfd to wake up waiters. |
|
The advantage of futex provided by the kernel is ABI stability and cross process support.