ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/Queue/Main.java
Revision: 1.1
Committed: Thu Dec 28 01:04:07 2000 UTC (23 years, 4 months ago) by tdb
Branch: MAIN
Log Message:
Main method to test the Queue. It creates a Queue, a Producer and a
Consumer. These are all set running. The threading support can be fully
tested by ensuring that the 'wait' period in the Producer and Consumer are
different.

File Contents

# User Rev Content
1 tdb 1.1 class Main {
2    
3     public static void main(String args[]) {
4     Queue q = new Queue();
5     Producer p = new Producer(q);
6     Consumer c = new Consumer(q);
7     p.start();
8     c.start();
9     }
10    
11     }