Search posts, tags, users, and pages
We discuss seqlock-based atomic snapshots as an alternative to the k-word CAS algorithm when writes are infrequent and single-writer limitation is fine.
Andrei Pechkurov
@puzpuzpuz
Top data race and segfault producer in the room.
Core database engineer at QuestDB. Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.
Markdown supported · ⌘↵ to post
Aleksander Lantsov
Excellent article, thank you!
Why is the last access to the "version" variable in the reader (right after loadLoadFence) done with acquire semantics (instead of opaque)?
Thanks for the feedback.
As for the last getAcquire, I think you're right. Considering the prior loadLoadFence, it can be changed to getOpaque.
Aleksander Lantsov
Excellent article, thank you!
Why is the last access to the "version" variable in the reader (right after loadLoadFence) done with acquire semantics (instead of opaque)?