Skip to content

Glossary: Software Design Patterns in Rust

Data race

Also written: data races

A bug where two threads access the same data at once and at least one changes it, giving unpredictable results. It is why Rust makes changeable globals awkward.

Where the book teaches it

Related terms

MutexGlobal mutable state