The fork/join framework, which is based on the
is an implementation of the
Executor interface. It is designed to efficiently run a large number of tasks using a pool of
worker threads. A work-stealing technique is used to
keep all the worker threads busy, to take full advantage of
multiple processors. See Fork/Join in The Java Tutorials. The directory
<Java home>/sample/forkjoin/ contains samples that demonstrate the fork/join framework.