Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Quantitative Finance · Glossaire

Qu'est-ce que « Data race » ?

Definition 9.5 Low-Latency Software · Chapitre 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.

Lire dans le chapitre →