Java - Concurrency (Parallel Work)
About
In concurrent or parallel programming, there are two basic units of execution:
- processes. A process is implemented as a main thread that can create other thread.
- and threads. Threads exist within a process — every process has at least one.
In the Java programming language, concurrent programming is mostly concerned with threads.
Communication between threads
The Java programming language provides multiple mechanisms for communicating between threads:
- The most basic of these methods is synchronization, which is implemented using monitors.
Execution Framework
- Java has a concurrency framework (higher-level building blocks) since the version 1.5 with the APIs java.util.concurrent packages.