# | Line 1 | Line 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); |
4 | > | 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 | p.start(); | |
9 | c.start(); | |
10 | + | d.start(); |
11 | } | |
12 | ||
13 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |