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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Memory Fences<br />
These are also called memory barriers and are used frequently <strong>in</strong> <strong>the</strong><br />
L<strong>in</strong>ux kernel.<br />
A memory fence is one of:<br />
release fence<br />
acquire fence<br />
both release and acquire fence<br />
A fence has no memory location operand.<br />
Two threads T1 and T2 synchronize us<strong>in</strong>g a fence if T1 writes to an<br />
atomic object M after <strong>the</strong> release fence which is read by T2 before <strong>the</strong><br />
acquire fence.<br />
Details on <strong>the</strong> follow<strong>in</strong>g slides.<br />
Jonas Skeppstedt (js@cs.lth.se) Lecture 6 2013 28 / 70