






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Professor: Hollingsworth; Class: Operating Systems; Subject: Computer Science; University: University of Maryland; Term: Unknown 1989;
Typology: Study notes
1 / 10
This page cannot be seen from the preview
Don't miss anything!







z^
z^
z^
z^
z^
z^
z^
z^
bounded buffer)
z^
z^
z^
Signal Handler
Table
SigIOHandler{ } SigAlarmHandler{ }
SetSigAction(sig, handler)
Process 1
Process 2 Shared Region
z^
z^
z^
Counter Decrement
reg
= counter 1
reg
= counter 2
reg
= reg 1
reg
= reg 2
counter = reg
1
counter = reg
2
z^
0
producer
reg
= counter 1
{ reg
producer
reg
= reg 1
{ reg
consumer
reg
= counter 2
{ reg
consumer
reg
= reg 2
{ reg
producer
counter = reg
1
{ counter = 6 }
consumer
counter = reg
2
{ counter = 4 }
Thisshouldbe 5!