System Software-I. Unit 3.
Multithreading with Pthreads Part III - Synchronization.
The racing problem.
Locking. Atomic execution of a critical section.
Locking granularity.
Deadlocks.
Using the pthread APIs for synchronization.
Seeing the data race.
Example: the factorial of a given number.
Mutex attributes.
The robust attribute mutex.
IPC, threads, and the process-shared mutex.
Priority inversion and watchdogs.
The pthreads APIs to query and set the protocol mutex attribute.
Mutex locking: some additional variants.
Condition Variable is an inter-thread event notification mechanism.
Simple Condition Variable usage demo application.
Source code.
Go back to Main Menu
Last Updated 08 Feb, 2021 09:44. <vadimov@i.ua>