O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Java concurrency utilities

The concurrency utilities are important APIs that facilitate the concurrency implementations in the Java applications. We can create the thread pools for execution, use the explicit locking mechanism, use fork or join to distribute the required task, and utilize the concurrency in context managed in the Java Enterprise applications.

For example, creating a thread pool is simple using ExecutorService, where we define the pool size and add all the different threads to that pool; in this way, we can control the execution of all these threads according to the defined pool size.

We need to understand all the available concurrency utilities because one of the performance-improvement techniques is to implement concurrency ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required