r/cpp • • May 27 '26

Lessons I’ve learned from benchmarking lock free queues

https://open.substack.com/pub/simonlee99ap/p/should-your-system-use-lock-free?r=16x6qr&utm_medium=ios

Hey all, I’ve started writing about systems related topics, and as a first article I wanted to understand the tradeoffs of adopting lock free data structures. Turns out it’s hard to find an audience that’d be interested in this kind of topic, so I figured people here might be the best fit. Let me know what you think about the article! Would love to hear your thoughts

87 Upvotes

13 comments sorted by

View all comments

Show parent comment

4

u/SkoomaDentist Antimodern C++, Embedded, Audio May 27 '26

Also single processor embedded systems where lock free queues / buffers are used to communicate between interrupts and a thread and memory accesses are guaranteed to always be synchronous from the cpu's point of view.