1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import java.util.concurrent.*; |
36 |
|
warmup(); |
37 |
|
print = true; |
38 |
|
|
39 |
< |
int k = 1; |
40 |
< |
for (int i = 1; i <= maxn;) { |
39 |
> |
for (int k = 1, i = 1; i <= maxn;) { |
40 |
|
System.out.println("Consumers:" + i); |
41 |
|
oneTest(i, ITERS); |
42 |
|
if (i == k) { |
48 |
|
} |
49 |
|
|
50 |
|
pool.shutdown(); |
51 |
< |
} |
51 |
> |
} |
52 |
|
|
53 |
|
static void warmup() throws Exception { |
54 |
|
print = false; |