tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

C11 memory fences, atomics, memory model



Hi,

There have been some discussions amongst the developers about the C11
memory model.  It seemed that there was a lot of confusion and a general
lack of clarity in this subject.  I wrote a quick summary describing some
of the key points of the C11 memory model and key aspects of the memory
fence semantics as well as atomic operations.

This short document is supposed to help those who are familiar with the
lock-free programming in the pre-C11 world to better understand what
changed after C11.

https://github.com/rmind/stdc/blob/master/c11memfences.md
or txt: http://www.netbsd.org/~rmind/c11memfences.txt

Hope this helps.

Thanks.

-- 
Mindaugas


Home | Main Index | Thread Index | Old Index