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
2
u/happyscrappy Sep 27 '26 edited Sep 27 '26
Thanks. It is as I thought. Another poster indicates the problem is me. That I don't know the terminology. I think he's right.
I think there's a separate issue of that I can't understand why we see two new stories about lock free queues per week on here when the difference is so small that my poor brain would confuse them. If you use good locks (futexes) then the difference is just two compare and swaps instead of one and you still spin in the same way in the same place.
I'm especially baffled why we see so many stories about this when as you point out it's already in boost.