RecursiveTask
Class RecursiveTask<V>
- java.lang.Object
-
- java.util.concurrent.ForkJoinTask<V>
-
- java.util.concurrent.RecursiveTask<V>
- All Implemented Interfaces:
- Serializable, Future<V>
public abstract class RecursiveTask<V> extends ForkJoinTask<V>
A recursive result-bearing ForkJoinTask
.
For a classic example, here is a task computing Fibonacci numbers:
class Fibon