# | Line 120 | Line 120 | public class ProducerConsumerLoops { | |
---|---|---|
120 | System.out.print("SynchronousQueue "); | |
121 | oneRun(new SynchronousQueue<Integer>(), n, iters); | |
122 | ||
123 | – | |
123 | Thread.sleep(100); // System.gc(); | |
124 | if (print) | |
125 | System.out.print("SynchronousQueue(fair) "); | |
# | Line 145 | Line 144 | public class ProducerConsumerLoops { | |
144 | if (print) | |
145 | System.out.print("ArrayBlockingQueue(fair)"); | |
146 | oneRun(new ArrayBlockingQueue<Integer>(POOL_SIZE, true), n, fairIters); | |
148 | – | |
147 | } | |
148 | ||
149 | abstract static class Stage implements Runnable { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |