On Tuesday, 7 May 2013 at 13:25:37 UTC, Andrei Alexandrescu wrote:
A tutorial on memory consistency models would be too long to
insert here. I don't know of a good online resource, does
anyone?
The best explanation I've found of memory models is this paper:
http://dl.acm.org/citation.cfm?id=325102
Which can be had for free (albeit in terrible print quality) here:
http://eecs.vanderbilt.edu/courses/eece343/papers/p15-gharachorloo.pdf
Kourosh Gharachorloo actually has a number of really good papers
about this stuff. Here's another, if you're interested in the
details of how things work:
http://www.hpl.hp.com/techreports/Compaq-DEC/WRL-95-9.pdf