| Start |
|---|
| Fork/Join Tasks in Java The fork/join framework in Java is ideal for a problem that can be divided into smaller pieces and solved in parallel. The fundamental steps of a fork/join problem are:
A ForkJoinTask (opens new window) is the interface that defines such a problem. It is generally expected that you will subclass one of its abstract implementations (usually the RecursiveTask (opens new window)) rather than implement the interface directly. In this example, we are going to sum a collection of integers, dividing until we get to batch sizes of no more than ten. An instance of this task can now be passed to an instance of ForkJoinPool (opens new window). |
Read Article
https://develop.horje.com/learn/1434/reference