Semaphore Example

Download the following code:

In Eclipse, create a new Java project called "WB", and import the above 3 files into package "semaphore.wb".
Compile and run the program to see how it works (simulation results).