Threads in the new ISO C Standard from 2011
Threads in the new ISO C Standard from 2011
Threads in the new ISO C Standard from 2011
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Synchronize with us<strong>in</strong>g Fences<br />
A release fence A synchronizes with an acquire fence B if <strong>the</strong>re exist<br />
atomic operations X and Y which operate on an atomic object M and<br />
X is sequenced after A,<br />
Y is sequenced before B,<br />
Y reads a value written by X or <strong>the</strong> hypo<strong>the</strong>tical release sequence<br />
headed by X if it were a release.<br />
One of A and B can be replaced with an atomic operation, which<br />
elim<strong>in</strong>ates <strong>the</strong> need for ei<strong>the</strong>r X or Y .<br />
A and X can be replaced with a release operation on M.<br />
Y and B can be replaced with an acquire operation on M.<br />
Jonas Skeppstedt (js@cs.lth.se) Lecture 6 2013 30 / 70