CS 102 (Spring 2003)
Quiz 5: Barrier Synchronization and Semaphores

Quiz Posted Given in class
10 Apr 22 Apr
Due in class, 22 April 2003

A set of n Threads participates in a barrier synchronization as follows.

Consider Doug Lea's implementation of Semaphore. Write the code for the Barrier class using Semaphore objects and no other synchronization mechanisms (i.e., no wait, no synchronized, etc).

Last modified 12:10:50 CDT 17 April 2003 by Ron K. Cytron