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.
Def<strong>in</strong>ition of Dependency <strong>in</strong> C11<br />
A carries a dependency to B if<br />
<strong>the</strong> value of A is used as an operand of B (except <strong>the</strong> left operand of<br />
?: , && or ||), or<br />
A writes a scalar object (po<strong>in</strong>ter or arithmetic variable) or a bitfield <strong>in</strong><br />
memory location M and B reads <strong>from</strong> M <strong>the</strong> value written by A, and A<br />
is sequenced before B<br />
For some evaluation X , A carries a dependence to X and X carries a<br />
dependency to B.<br />
Carries a dependency is <strong>in</strong>tra-thread.<br />
Jonas Skeppstedt (js@cs.lth.se) Lecture 6 2013 33 / 70