A data race occurs when two threads access the same memory location concurrently, at least one access is a write, and at least one is not atomic. In C++ it is undefined behaviour; in safe Rust it cannot be written: the traits Send and Sync, which mark the types that may be moved or shared between threads, and the rule that a mutable reference is exclusive, are checked when compiling.
Quantitative Finance · Glossary