Hacker News new | ask | show | jobs
by xtacy 2362 days ago
Aren't most modern spinlock implementations are ticket-based, which ensures fairness among waiters (FIFO-like)? The linux kernel implementations most definitely are.

I agree that the naive implementations are not.

1 comments

Completely fair locks can have extremely terrible throughput performance, so depending what you are doing with them, they might not be a good idea...