45
edits
Changes
→Mutual Exclusion
=====C++ 11=====
The C++ 11 thread libraries provide the mutex class to support mutual exclusion and synchronization. <br>
The mutex class is a synchronization primitive that can be used to protect shared data from being accessed by multiple threads.
std::mutex is usually not accessed directly, instead std::unique_lock and std::lock_guard are used to manage locking.