CS 110 Operating Systems
Threads Project
Due Date - 14 Dec, 9PM
Version 1.0
Introduction
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.
Due Date:
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:
-
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):
-
truss
-
vmstat
-
iostat
-
time
-
prof, gprof
This needs to be complete and detailed!!!
-
A print out of a test runs using the input files
input2 and
input3
(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.
NOTES:
-
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.
Presentation:
None
References:
-
In the terminal room there are copies of a Solaris threads
manual.
(look at chapters 2 and 3, it is all there)
-
http://www.llnl.gov/computing/tutorials/workshops/workshop/pthreads/MAIN.html
-
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.
Last modified 22 Dec by mike@cs.hmc.edu