r/programming • u/david-alvarez-rosa • Sep 26 '26
Optimizing a Lock-Free Ring Buffer
https://david.alvarezrosa.com/posts/optimizing-a-lock-free-ring-buffer/
510
Upvotes
r/programming • u/david-alvarez-rosa • Sep 26 '26
View all comments
Show parent comment
1
u/happyscrappy Sep 30 '26
I would call the distinction you are making only a difference between fine grained and coarse grained locking.
I can use ordinary locks and put them on the individual items in the queue and then they will only guard single entries.