Modern Java Concurrency Course: Full Outline and Reading Order
The complete table of contents for the modern Java concurrency course: platform threads, virtual threads, the scheduler, structured concurrency, scoped values, reactive Java and frameworks. 50 articles in 7 parts, with a review quiz after each part and four final quizzes.
kvi5hnuCode Sprout team member7 min readOn this page
This is the table of contents for the modern Java concurrency course. It starts with classic platform threads and the problems they leave unsolved, and works through everything Java added since: virtual threads, the scheduler and continuations underneath them, structured concurrency, scoped values, how all of it compares with reactive programming, and how Spring Boot, Quarkus, Micronaut, Helidon and Jakarta EE use it. It's written for students learning concurrency, for professionals moving services to virtual threads, and for anyone preparing for interviews.
The course follows Java 25, the current long-term-support release, and covers the newer releases as they apply: structured concurrency is shown with the Java 27 preview API, which Java 28 makes final in March 2027. Every runnable example was run on Java 25, and its exact output is shown below it. Listings that need preview APIs, Reactor or a framework were run separately, and their real output is shown too.
What you will learn
- Why platform threads limit I/O-bound services, and what thread pools,
CompletableFutureand reactive code each trade away. - How virtual threads work, from mounting and unmounting to continuations and the
ForkJoinPoolscheduler, and how to avoid pinning, thread-local pitfalls and lost limits. - How to monitor them with JFR and JSON thread dumps.
- Structured concurrency with
StructuredTaskScope: joiners, failure handling, timeouts, custom policies and nested scopes, and how the API changed from Java 21 to 28. - Passing request context with scoped values instead of
ThreadLocal. - Non-blocking I/O, event loops, reactive streams and backpressure, and when reactive code is still the better choice.
- Turning on virtual threads in the major frameworks, and what to check afterwards.
How the course is organised
| # | Part | What it covers |
|---|---|---|
| 1 | Foundations: Threads, Pools and Asynchronous Code | Why concurrency, platform threads and their cost, executors and pool limits, fork/join and CompletableFuture, and the trade-offs of reactive code |
| 2 | Virtual Threads | What virtual threads are, creating them, throughput and Little's law, mounting and unmounting, semaphores, pinning, native calls, thread-locals, JFR monitoring, thread dumps and migration |
| 3 | Under the Hood: Pools, Fork/Join, the Scheduler and Continuations | A thread pool from scratch, ThreadPoolExecutor, Callable and Future, work stealing, the virtual-thread scheduler, continuations, and virtual threads built from continuations |
| 4 | Structured Concurrency | Problems of unstructured concurrency, StructuredTaskScope, joiners, racing, exception handling, configuration and timeouts, custom joiners, memory consistency, nested scopes, observability, and the API history |
| 5 | Context: ThreadLocal and Scoped Values | Passing context, ThreadLocal's limits, ScopedValue where/run/call, and scoped values with structured concurrency |
| 6 | Reactive Java and Virtual Threads | Blocking and non-blocking I/O, NIO selectors, event-driven architecture, reactive streams and Flow, backpressure, and choosing between reactive code and virtual threads |
| 7 | Frameworks and Takeaways | Spring Boot, Quarkus, Micronaut, Helidon and Jakarta EE, and the course in one checklist |
Part 1: Foundations: Threads, Pools and Asynchronous Code
- Java Threads Explained: Concurrency vs Parallelism and Why Every Java Program Is Multithreaded
- Java Threads: Creating and Starting Them, and Why start() Is Not run()
- The Hidden Cost of Java Platform Threads: Memory, OS Limits and Context Switches
- Blocking I/O and Parallel Fan-Out in Java: Speeding Up a Request With Raw Threads
- Java Executors and Thread Pools: What They Fix and What They Don't
- Java ForkJoinPool and CompletableFuture: Work Stealing and Composable Async Code
- Reactive Programming vs Virtual Threads in Java: Trade-offs and the Promise of Project Loom
Review quiz: Quiz: Threads, Executors and the Road to Virtual Threads (Java Concurrency Part 1 Review)
Part 2: Virtual Threads
- What Is a Java Virtual Thread? Platform Threads, Virtual Threads and How They Differ
- Creating Java Virtual Threads: startVirtualThread, Thread.Builder, Factories and Executors
- Java Virtual Threads and Little's Law: Throughput, Scalability and When They Help
- How Java Virtual Threads Work Under the Hood: Mounting, Unmounting and Heap Stacks
- Limiting Concurrency With Virtual Threads: Semaphores and Rate Limiting in Java
- Virtual Thread Pinning in Java: synchronized, ReentrantLock and the Java 24 Fix
- Java Virtual Threads and Native Code: FFM Calls, File I/O and Other Limitations
- ThreadLocal With Java Virtual Threads: Memory Costs, Inheritance and Alternatives
- Monitoring Java Virtual Threads With JFR: Pinning, Lifecycle and Submit-Failed Events
- Java Virtual Thread Dumps With jcmd: JSON Format, Thread Containers and HotSpotDiagnosticMXBean
- Migrating to Java Virtual Threads: A Practical Checklist
Review quiz: Quiz: Java Virtual Threads in Depth (Java Concurrency Part 2 Review)
Part 3: Under the Hood: Pools, Fork/Join, the Scheduler and Continuations
- Building a Thread Pool From Scratch in Java: Worker Threads and a Task Queue
- ThreadPoolExecutor in Java: Core and Maximum Size, Work Queues and Rejection Policies
- Callable and Future in Java: Task Results, Timeouts, Cancellation and invokeAll
- ForkJoinPool in Java: Work Stealing, RecursiveTask and Why Ordinary Pools Deadlock
- The Virtual Thread Scheduler: How ForkJoinPool Runs Java Virtual Threads
- Continuations in Java: How Virtual Threads Pause and Resume
- Building Virtual Threads From Scratch in Java With Continuations
Review quiz: Quiz: The Mechanics Behind Java Virtual Threads (Java Concurrency Part 3 Review)
Part 4: Structured Concurrency
- The Problems With Unstructured Concurrency in Java: Leaks, Lost Errors and Orphaned Tasks
- Structured Concurrency in Java: The Principles Behind StructuredTaskScope
- StructuredTaskScope in Java: fork(), join() and the Subtask Handle
- StructuredTaskScope Joiners in Java: Collecting Results, Waiting for All and allUntil
- Racing Subtasks in Java: anySuccessfulOrThrow and Hedged Requests
- Exception Handling in Structured Concurrency: ExecutionException, Causes and Custom Exceptions
- Configuring StructuredTaskScope in Java: Names, Thread Factories and Timeouts
- Writing Custom Joiners in Java: Quorums, Collectors and Your Own Policies
- Memory Visibility in Structured Concurrency: What fork() and join() Guarantee
- Nested Scopes in Java: Building Task Trees With StructuredTaskScope
- Observing Structured Concurrency: Scope Names, Thread Dumps and Task Trees
- StructuredTaskScope From Java 21 to Java 28: Every API Change and How to Migrate
Review quiz: Quiz: Structured Concurrency in Java (Java Concurrency Part 4 Review)
Part 5: Context: ThreadLocal and Scoped Values
- Passing Context in Java: Parameter Pollution and Why Thread-Locals Were Used
- The Problems With ThreadLocal in Java: Mutability, Leaks and InheritableThreadLocal
- ScopedValue in Java: Binding Context With where(), run() and call()
- Scoped Values With Structured Concurrency: Inheritance, Use Cases and Migrating From ThreadLocal
Review quiz: Quiz: Scoped Values in Java (Java Concurrency Part 5 Review)
Part 6: Reactive Java and Virtual Threads
- Blocking vs Non-Blocking I/O in Java: Streams, NIO Channels and Buffers
- Java NIO Selectors: Building an Event-Loop Server
- Event-Driven Java: Event Loops, Callbacks and CompletableFuture
- Reactive Streams in Java: Publisher, Subscriber and the Flow API
- Backpressure in Java: Flow Control With Reactive Streams and Virtual Threads
- Reactive Programming vs Virtual Threads in Java: How to Choose
Review quiz: Quiz: Reactive Java and Virtual Threads (Java Concurrency Part 6 Review)
Part 7: Frameworks and Takeaways
- Virtual Threads in Spring Boot: Configuration, Pitfalls and Monitoring
- Virtual Threads in Quarkus, Jakarta EE, Helidon and Micronaut
- Modern Java Concurrency: Key Takeaways and an Adoption Checklist
Review quiz: Quiz: Virtual Threads in Frameworks (Java Concurrency Part 7 Review)
After the course: final quizzes
When you've finished all seven parts, test everything together, then go deeper:
- Modern Java Concurrency Final Exam (All 7 Parts): 30 questions across all seven parts.
- Java Concurrency Interview Questions (Virtual Threads, Structured Concurrency, Scoped Values): the questions interviewers ask about threads, virtual threads, structured concurrency and scoped values.
- Java Concurrency's Delicate Details: edge cases that surprise experienced developers.
- Java Concurrency Changes From Java 21 to Java 28: what changed in each release.
Start here: Java Threads Explained: Concurrency vs Parallelism and Why Every Java Program Is Multithreaded

More in Modern Java Concurrency
Quiz: Java Concurrency Changes From Java 21 to Java 28
Sixteen questions on what changed release by release: virtual threads final in 21, synchronized without pinning in 24, scoped values final in 25, and the long road of structured concurrency from subclasses to open() and Joiner, the Java 26 and 27 refinements, and final in 28.
Quiz: Java Concurrency's Delicate Details
Twenty edge cases of modern Java concurrency that surprise experienced developers: virtual thread priorities and names, semaphores without owners, null scoped values, cancelling a CompletableFuture, pool sizing with unbounded queues, and StructuredTaskScope's strict rules.
Quiz: Java Concurrency Interview Questions (Virtual Threads, Structured Concurrency, Scoped Values)
Twenty questions of the kind interviewers ask about modern Java concurrency: platform vs virtual threads, pinning, pools and limits, CompletableFuture, structured concurrency, scoped values vs ThreadLocal, reactive programming, and production diagnostics.
Quiz: Modern Java Concurrency Final Exam (All 7 Parts)
The final exam for the modern Java concurrency course: thirty questions across all seven parts, from platform threads, pools and CompletableFuture through virtual threads, the scheduler, structured concurrency, scoped values, reactive streams and frameworks.
Discussion
Sign in to ask a question or share what you learned.