Time, Fences and the Ordering of Events in TSO
Ra\"issa Nataf, Yoram Moses

TL;DR
This paper develops a semantic framework for understanding when synchronization primitives are necessary under the TSO memory model, using a novel occurs-before relation to analyze event ordering and causality.
Contribution
It introduces a TSO-specific occurs-before relation and proves that creating such chains is essential for event ordering, generalizing prior lower bounds for shared memory implementations.
Findings
Characterizes when fences and RMWs are necessary in TSO
Proves that event ordering requires occurs-before chains
Extends reasoning from asynchronous systems to TSO
Abstract
The Total Store Order (TSO) is arguably the most widely used relaxed memory model in multiprocessor architectures, widely implemented, for example in Intel's x86 and x64 platforms. It allows processes to delay the visibility of writes through store buffering. While this supports hardware-level optimizations and makes a significant contribution to multiprocessor efficiency, it complicates reasoning about correctness, as executions may violate sequential consistency. Ensuring correct behavior often requires inserting synchronization primitives such as memory fences () or atomic read-modify-write () operations, but this approach can incur significant performance costs. In this work, we develop a semantic framework that precisely characterizes when such synchronization is necessary under TSO. We introduce a novel TSO-specific occurs-before relation, which adapts Lamport's celebrated…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
