Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Quantitative Finance · Begrippenlijst

Wat is Data race?

Definition 9.5 Low-Latency Software · Hoofdstuk 9 — Rust for Low Latency

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.

Lees in het hoofdstuk →