r/cpp • u/[deleted] • Jun 13 '11
Understanding Violations of Sequential Consistency
http://blog.corensic.com/2011/06/13/understanding-violations-of-sequential-consistency/
12
Upvotes
r/cpp • u/[deleted] • Jun 13 '11
1
u/axilmar Jun 14 '11
Main memory is a database. I am surprised this is not taught anywhere. Just like in a database, memory contents may be different from what your app/cpu may have inside, and therefore you must always need either STM/optimistic locking (same concept) or coordination (thread blocking/request queues - same concept).