31 |
|
* subtasks are too small to be worthwhile splitting up. Instead, as |
32 |
|
* is the case for nearly all fork/join applications, you'd pick some |
33 |
|
* minimum granularity size (for example 10 here) for which you always |
34 |
< |
* sequentially solve rather than subdividing. |
34 |
> |
* sequentially solve rather than subdividing. |
35 |
|
* |
36 |
|
*/ |
37 |
|
public abstract class RecursiveTask<V> extends ForkJoinTask<V> { |
48 |
|
V result; |
49 |
|
|
50 |
|
/** |
51 |
< |
* The main computation performed by this task. |
51 |
> |
* The main computation performed by this task. |
52 |
|
*/ |
53 |
|
protected abstract V compute(); |
54 |
|
|