ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/Queue/Main.java
(Generate patch)

Comparing experimental/server/Queue/Main.java (file contents):
Revision 1.1 by tdb, Thu Dec 28 01:04:07 2000 UTC vs.
Revision 1.3 by tdb, Tue Jan 2 01:52:59 2001 UTC

# Line 2 | Line 2 | 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);
5 >        Producer p = new Producer(q, 1000);
6 >        Consumer c = new Consumer(q, 2000, -1);
7 >        Consumer d = new Consumer(q, 500, 12);
8 >        Consumer e = new Consumer(q, 1000, -1);
9 >        Consumer f = new Consumer(q, 1500, 22);
10          p.start();
11          c.start();
12 +        d.start();
13 +        e.start();
14 +        f.start();
15 +        try { Thread.sleep(21000); } catch(Exception ee) {}
16 +        Consumer g = new Consumer(q, 1000, -1);
17 +        g.start();
18 +        Consumer h = new Consumer(q, 1000, -1);
19 +        h.start();
20      }
21      
22   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines