Skip to content

Glossary: C++ Beyond the Basics

Data race

Also written: data races

Two threads using the same data at once with at least one writing. It is undefined behavior and can silently lose updates, like Kettle & Crane's lost cup counts.

Where the book teaches it

Related terms

Undefined behaviorAtomicMutexThreadSanitizer (TSan)