Home page:http://www.cis.njit.edu/franz E-mail:franz@cis.njit.edu
Homework | Task
| Deadline | Points | Student
Name:
5 | Process Synchronization
| Oct. 21
| 3 |
|
Your task in this homework is to outline a solution for the
"Sleeping-Barber" problem as described in the textbook on page 212,
exercise 6.7.
You have to solve the following subtasks:
Diagram:
Draw a diagram similar to the Producer-Consumer problem,
illustrating the relevant entities in the problem,
and how they interact.
Algorithm in Pseudo-Code:
Describe an algorithm to solve the problem in pseudo-code.
Use semaphores to synchronize the activities. A good
starting point might be the dining philosophers problem
on pages 184-186. Either put comments in your code,
or describe the important steps of your program
seperately.
CIS 332 Principles of Operating Systems Fall 1996 Franz Kurfess.