CS 3733 Operating Systems
Lecture 34 [4/8/98]: Mutex Locks and Condition Variables
Read Pup 10.1 and 10.3
- Discussion of Assignment 4 and Assignment 6
- Mutex lock:
- Simplest synchronization mechanism.
- Variable with two atomic operations:
lock
and unlock
- Used to assure mutual exclusion among cooperating processes or cooperating
threads.
- Should not hold a lock while executing code of long or undetermined duration.
Skill: Understand design of Assignment 6.
Revised 4/10/98