====== C - C++ Threads - Protected access to shared data or shared resources - Mutex ====== The classical way to protect access to a variable is using a mutex. **NOTE:** This is known to have much overhead. ---- [[C:C++ Threads:Protected access to shared data or shared resources:Mutex:Basic Example|Basic Example]] [[C:C++ Threads:Protected access to shared data or shared resources:Mutex:Class Example|Class Example]] ----