Y
Hacker News
new
|
ask
|
show
|
jobs
by
zengid
843 days ago
Not if your program needs to be realtime or near realtime safe. Locks are controlled by the OS typically, and can have non-deterministic latency.
1 comments
loeg
843 days ago
Even ignoring mutexes and OS scheduling, plain spinlocks add contention that would not otherwise exist in a SPSC ringbuffer.
https://news.ycombinator.com/item?id=39551575
link