Introduction In a previous post on atomic operations, I skipped an important topic, which is memory ordering issues. Behind the hood, the processor might reorder memory operations (reads and writes) for many reasons. This is normally not a problem on programs running on single-core machines. On the other hand, multi-threaded programs running on multi-cores machines can suffer from that: the sequen