cc_staff
156
edits
(Created page with "=C= C is a general-purpose, high-level, imperative programming language created by Dennis Ritchie between 1969 and 1973 at Bell Labs. C is now represented as a number of ISO...") |
No edit summary |
||
Line 11: | Line 11: | ||
=Well-Defined Concurrency and Memory Models= | =Well-Defined Concurrency and Memory Models= | ||
Prior to 2011 the ISO C standard had no definitions of concurrency and memory models, thus, in pre-C11 compiled code there are no guarantees concerning the ordering of memory reads and writes under concurrency, i.e., such is likely undefined behaviour which the compiler vendor may or may not have documented. It is therefore preferable to compile concurrent C code as C11 code (or newer). | |||
=Pitfalls= | =Pitfalls= |