A race condition is a concurrency defect caused by unpredictable operation timing: one thread reads shared data while another updates it during the first thread’s computation. section 10.1
In a multithreaded web server, request-handling threads can execute in unpredictable orders, making shared-memory access harder to design safely. Rust’s thread-safety guarantees prevent race conditions and related classes of bugs. section 1.3.2 section 10.1
Interleaved shared-data access
Thread A reads a value and begins computing with it. Before Thread A finishes, Thread B updates that value. Thread A may therefore produce a result based on stale data. section 10.1
Relate race conditions to the distribution of HTTP request handling across multiple operating-system threads. section 10.1



















