Concept
Concurrency
Millions of cheap threads for blocking I/O . Don't pool them like platform threads.
Where it fits
Packages: Advanced concurrency (pkg16advconcurrency), Concurrency (pkg7concurrency)
Learn
Existing chapters for this concept.
- Concurrency
Millions of cheap threads for blocking I/O . Don't pool them like platform threads.
Open lesson →
See it in code
Existing Java examples.
Reference
- Java Memory Model (pkg16advconcurrency)
Deep concurrency beyond threads — synchronizers, visibility, structured concurrency.
Open reference →
Prepare
Existing interview questions.
- How does ConcurrentHashMap achieve concurrency?
Bucket-level CAS + synchronized bins; no global lock.
Open question → - Concurrency & Multithreading — Interview Questions (150+)
Prefer immutability and high-level concurrency utilities over low-level locks.
Open question → - Optimistic concurrency?
Start simple; scale the proven bottleneck; justify trade-offs.
Open question →
Java versions
- More Concurrency Updates
More Concurrency Updates. java.util.concurrent.Flow publishes the reactive-streams interfaces. CompletableFuture also gains more composition methods.
Open version note → - Structured Concurrency (Incubator)
Structured Concurrency (Incubator). An incubator API treats related tasks as one unit of work. It is not a preview feature and not a standard API.
Open version note → - Structured Concurrency (Second Incubator)
Structured Concurrency (Second Incubator). Structured concurrency incubates a second time. It is still not a preview.
Open version note → - Java 21
JDK 21, JSR 396, reached general availability on 19 September 2023. Virtual threads, record patterns, switch patterns, and sequenced collections are final.…
Open version note → - Structured Concurrency (Preview)
Structured Concurrency (Preview). Structured concurrency is a preview API. Related tasks form one unit of work that can cancel and report errors together.
Open version note → - Structured Concurrency (Second Preview)
Structured Concurrency (Second Preview). Structured concurrency is previewed a second time.
Open version note → - Structured Concurrency (Third Preview)
Structured Concurrency (Third Preview). Structured concurrency is previewed a third time.
Open version note → - Structured Concurrency (Fourth Preview)
Structured Concurrency (Fourth Preview). Structured concurrency is previewed a fourth time.
Open version note → - Java 25
JDK 25, JSR 400, reached general availability on 16 September 2025. Final, preview, incubator, and experimental JEPs stay in those statuses, including JEP 509…
Open version note → - Structured Concurrency (Fifth Preview)
Structured Concurrency (Fifth Preview). A preview API treats related tasks in different threads as one unit of work, so cancellation and errors stay with that…
Open version note →