Assignment

Objectives

Using kernel threads and semaphores:

Each thread has the following structure:

      for(i = 0; i < numberOfIterations; i++){ 
          request-resource;  
          use-resource;  
          giveUpResource;  
      }  
      

Please include a readme file, explaining

  1. How to run your code.
  2. Why your code implements a correct solution to the problem

The assignment will be discussed in class and you are encouraged to flesh out the specification.

Turning in your assignment

Turn in your tarred, gzipped file by

  1. emailing it as an attachment to
    cs446@cs.unr.edu
  2. Turning in hardcopy of your source and readme in class on the due date.

Here is sample code:


Sushil Louis
Last modified: Mon Feb 23 12:27:48 PST 2004