SLIDE 1
Operating Systems Semaphores, Condition Variables, and Monitors
Lecture 6 Michael O’Boyle
1
Operating Systems Semaphores, Condition Variables, and Monitors - - PowerPoint PPT Presentation
Operating Systems Semaphores, Condition Variables, and Monitors Lecture 6 Michael OBoyle 1 Semaphore More sophisticated Synchronization mechanism Semaphore S integer variable Can only be accessed via two indivisible
1
5
6
7
8
9
10
11
12
13
14
15
Proc A Proc B Proc C
16
17
P P C C
18
P P C P
19
20
21
P P C P
22
P P C P
Queue of threads waiting for condition “not full” to be signaled
23
24
25