Understanding Memory Consistency in RISC-V: Caches, Barriers, and Atomics

The idea for this article emerged after reading numerous sources on memory barriers and memory models, as well as watching several…