Java ForkJoinPool/RecursiveTask

preview_player
Показать описание
ExecutorService

Introduce in Java 7

Using ForkJoinPool, a bigger task will be divided/forked to smaller tasks.

Once each of the smaller task get executed, result of execution of smaller task join/combine together to construct final result.

Abstraction of the task that runs within ForkJoinPool
Implementation of ‘ForkJoinTask’
RecursiveTask (Execute task & return Result) – Abstract Class
RecursiveAction (Only execute task, not Result return) – Abstract Class
Рекомендации по теме