flâneur — a map of the web's best reading

Memory Barriers Are Like Source Control Operations

preshing.com · 2,490 words · saved by 1 readers

If you use source control, you’re on your way towards understanding memory ordering, an important consideration when writing lock-free code in C, C++ and other languages. In …

If you use source control, you're on your way towards understanding memory ordering, an important consideration when writing lock-free code in C, C++ and other languages. In my last post, I wrote about memory ordering at compile time , which forms one half of the memory ordering puzzle. This post is about the other half: memory ordering at runtime, on the processor itself. Like compiler reordering, processor reordering is invisible to a single-threaded program. It only becomes apparent when lock-free techniques are used - that is, when shared memory is manipulated without any mutual exclusion

Explore this link on the map →

saved by

related reading