24 |
|
if (args.length > 1) |
25 |
|
n = Integer.parseInt(args[1]); |
26 |
|
if (args.length > 2) |
27 |
< |
reps = Integer.parseInt(args[1]); |
27 |
> |
reps = Integer.parseInt(args[2]); |
28 |
|
} |
29 |
|
catch (Exception e) { |
30 |
|
System.out.println("Usage: java FJSums threads n reps"); |
157 |
|
* internal nodes, it becomes true when one child is cumulated. |
158 |
|
* When second child finishes cumulating, it then moves up tree, |
159 |
|
* executing complete() at the root. |
160 |
– |
* |
160 |
|
*/ |
161 |
|
static final class Cumulater extends ForkJoinTask<Void> { |
162 |
|
static final short CUMULATE = (short)1; |
275 |
|
} |
276 |
|
|
277 |
|
} |
279 |
– |
|
280 |
– |
|