Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: data race is now defined in both the C and C++ standards

...

Anchor
data race
data race

data race [ISO/IEC Document Number N3000 – Working Draft, Standard for Programming Language C++, November 20099899:2011]
The execution of a program contains a data race if it contains two conflicting actions in different threads, at least one of which is not atomic, and neither happens before the other. Any such data race results in undefined behavior.

...