Concurrency

Memory Barriers Are Like Source Control Operations

用 VCS 来类比四种 memory fence


Acquire and Release Semantics

C++ provides acquire and release semantics, which are in fact founded on barriers.

acquire semantcis: #LoadLoad and #LoadStore; apply to read operations.

Acquire semantics prevent memory reordering of the read-acquire with any read or write operation that follows it in program order.

release sematncis: #StoreStore and #LoadStore; apply to write operations.

Release semantics prevent memory reordering of the write-release with any read or write operation that precedes it in program order.


Weak vs. Strong Memory Models

Categories of memory models.


This Is Why They Call It a Weakly-Ordered CPU

Memory reordering in ARM cpus

Programming Languages

golang nil 101

屎坑子真多。


why-i-dont-like-go.html

深有感触…

而且居然还是2016年的文章