32
edits
Changes
→Sources
[[File:MESIDIAGRAM123.PNG]]
== Sources Example == In this example, we have two threads running in parallel, each incrementing a separate counter variable. The volatile keyword is used to ensure that the compiler doesn't optimize away the increments. We also define the cache line size as 64 bytes.
<pre>
#include <iostream>
</pre>
== Sources ==