Cover by Javier Fernández González

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Monitoring a Fork/Join pool

The Executor framework provides a mechanism that allows the separation of the task implementation from the creation and management of the threads that execute those tasks. Java 7 includes an extension of the Executor framework for a specific kind of problem that will improve the performance of other solutions (as using Thread objects directly or the Executor framework). It's the Fork/Join framework.

This framework is designed to solve those problems that can be broken into smaller tasks using the divide and conquer technique using the fork() and join() operations. The main class that implements this behavior is the ForkJoinPool class.

In this recipe, you're going to learn what information you can obtain about a ForkJoinPool ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required