CS 110 Operating Systems
Due Date - 14 Dec, 9PM
This is a modification of
the solution to
the Basic Barber Shop Project
in that you are to now use Solaris or POSIX threads,
mutexes and condition variables (no semaphores).
There are no changes to how the Barber Shop operates
from the description of the Basic Barber Shop Project.
Thus, this is really just a straight conversion.
What to Turn-In:
Submit the code in the ususal way...
Submit to the bin outside my office:
A writeup that
describes your implementation,
including your use of threads, mutexes,
and condition variables.
Be sure to answer the following:
This needs to be complete and detailed!!!
How you used Thread features to handle any Semaphore activitiy,
e.g., Counting Semaphores.
Comparison of Basic Barber Shop Project and
Threads Barber Shop Project
ease of programming
Use of system resources and performance (look at the following tools):
A print out of a test runs using the input files
(these are the same inputs as input2 and input3 for the Basic BarberShop project)
(use lp4 to reduce paper).
Make sure to highlight the same information as you
did in the Basic BarberShop Project runs.
See pg, 107... of the 1st reference below
for a discussion of libraries and header files.
If you did a major improvement from Project 6 to Project 7
then you are free to use your Project 7 code.
Last modified 22 Dec by email@example.com
In the terminal room there are copies of a Solaris threads
(look at chapters 2 and 3, it is all there)
The usual obtuse Solaris man pages for
threads, mutexes, and condition variables
Chapter 3, UNIX Network Programming,
W. Richard Stevens.
On reserve in the library.
If you find other good references, please let me know.