User Tools

Site Tools


c:c_threads:protected_access_to_shared_data_or_shared_resources:mutex

This is an old revision of the document!


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.


Basic Example

Class Example

Protect shared data or shared resources with a mutex


c/c_threads/protected_access_to_shared_data_or_shared_resources/mutex.1623144466.txt.gz · Last modified: 2021/06/08 09:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki