Documentation Contents

Concurrency Utilities Enhancements in Java SE 7

The fork/join framework, which is based on the ForkJoinPool class, 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.

The ThreadLocalRandom class eliminates contention among threads using pseudo-random numbers; see Concurrent Random Numbers.

The Phaser class is a new synchronization barrier, similar to CyclicBarrier.


Oracle and/or its affiliates Copyright © 1993, 2019, Oracle and/or its affiliates. All rights reserved.
Contact Us