ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/Queue/Main.java
Revision: 1.2
Committed: Thu Dec 28 03:50:20 2000 UTC (23 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.1: +5 -3 lines
Log Message:
Added another consumer. There are now two, one faster and one slower than
the producer.

File Contents

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