Fork/Join (The Java™ Tutorials > Essential Java Classes > Concurrency)
The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available. See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases. See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases. The fork/join framework is an implementation of the ExecutorService interface that helps you take advantage of multiple processors. It is designed for work that can be broken into smaller pieces recursively. The goal is to use all the available processing power to enhance the performance of your application. As with any ExecutorService implementation, the fork/join framework distributes tasks to worker threads in a thread pool. The fork/join framework is distinct because it uses a work-stealing algorithm. Worker threads that run out of things to do can
Fork/Join (The Java™ Tutorials > Essential Java Classes > Concurrency) Documentation The Java™ Tutorials External Link --> Hide TOC Concurrency Processes and Threads Thread Objects Defining and Starting a Thread Pausing Execution with Sleep Interrupts Joins The SimpleThreads Example Synchronization Thread Interference Memory Consistency Errors Synchronized Methods Intrinsic Locks and Synchronization Atomic Access Liveness Deadlock Starvation and Livelock Guarded Blocks Immutable Objects A Synchronized Class Example A Strategy for Defining Immutable Objects High Level Concurrency Ob
related reading
- Synchronization (The Java™ Tutorials > Essential Java Classes > Concurrency)docs.oracle.com
- Atomic Access (The Java™ Tutorials > Essential Java Classes > Concurrency)docs.oracle.com
- Synchronized Methods (The Java™ Tutorials > Essential Java Classes > Concurrency)docs.oracle.com
- Thread Interference (The Java™ Tutorials > Essential Java Classes > Concurrency)docs.oracle.com
- Memory Consistency Errors (The Java™ Tutorials > Essential Java Classes > Concurrency)docs.oracle.com
- Intrinsic Locks and Synchronization (The Java™ Tutorials > Essential Java Classes > Concurrency)docs.oracle.com
- When to Use a Parallel Stream in Java | Baeldungbaeldung.com
- Notes on structured concurrency, or: Go statement considered harmful - njs blogvorpus.org
- Reading 14: Concurrencyweb.mit.edu
- Low Latency Java with the Disruptorblog.scottlogic.com
- [Java][Profiling] Async-profiler - manual by use cases | JVM/Java profiling and tuningkrzysztofslusarski.github.io
- Task Execution and Scheduling :: Spring Frameworkdocs.spring.io