CS 284 Operating Systems
Programming Assignment #9
Due: Prior to 3/19/2001
Modify Program #7 such that:
- The Consumer threads do NOT exit on any accumulated count
- When the original 5 producers have exited, main() will
- sleep(1)
- create a 6th producer to produce 5 widgits (and then exit)
- when the 6th producer exits main issues a SIG USR1 interrupt ONLY ONCE
and proceed to join both exit-ing consumers
- the consumers, after seeing a SIG USR1 will no longer cond_wait on an empty
buffer, but will exit instead
- produce a summary of who has done what
Suggestions:
- Change the original number to be produced to 10 - 15 (make it run faster)
- Make changes to #7 one small step at a time (always stay only a short distance
from a correctly running program).
a partial sample output
=================================================================
You should use the 'script' command to capture all necessary information for
handin.