Module data_race

Module data_race 

Source
Expand description

Module demonstrating data race prevention

Data race prevention through ownership and type system

Rust prevents data races at compile time through the type system.

Functionsยง

compare_c_vs_rust
Comparing C vs Rust concurrency
safe_concurrent_access
Arc and Mutex for safe concurrent access
type_system_prevents_races
Send and Sync traits prevent data races