Mutex synchronization APIs

Thread synchronization is required whenever two threads share a resource or need to be aware of what the other threads in a process are doing. Mutexes are the most simple and primitive object used for the co-operative mutual exclusion required to share and protect resources. One thread owns a mutex by locking it successfully, when another thread tries to lock the mutex, that thread will not be allowed to successfully lock the mutex until the owner unlocks it. The mutex support provides different types and behaviors for mutexes that can be tuned to your application requirements.

The table below lists important mutex attributes, their default values, and all supported values.

For information about the examples included with the APIs, see Information about the Pthread API examples.

The Mutex synchronization APIs are:

[ Back to top | Pthread APIs | APIs by category ]