Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Quantitative Finance · Glosario

¿Qué es Data race?

Definition 9.5 Low-Latency Software · Capítulo 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.

Leer en el capítulo →