CMPSCI 377: Operating Systems
Homework 2
Due: October 16, in class
- Problem 5.2 from the AOS text.
- Problem 5.3 from the AOS text.
- Problem 6.2 from the AOS text.
- Problem 6.4 from the AOS text.
- Semaphores: Suppose a building has a
limit on the number of people that may be in the building at one time
due to a fire code. Suppose this is a very popular place to visit, so
the number of people inside must be monitored closely. Further,
suppose that this building has more than one entrance and exit.
Construct an algorithm that could be used to control a set of turnstiles that
would ensure that the room was allowed to
be filled but was never allowed to exceed its legal capacity.
Prashant Shenoy
Last modified: Tue Oct 9 10:21:09 EDT 2001