Part III — Concurrency and Parallelism
Focus on modern concurrency primitives and patterns enabling scalability and simplicity.
What You'll Learn
Build scalable, efficient concurrent systems with virtual threads that transform how you think about server architecture. Discover structured concurrency for coordinated task management, and learn when reactive models complement traditional threading approaches.
Chapters in This Part
Chapter 8. Virtual Threads
Meet virtual threads—lightweight concurrency primitives that enable writing million-thread applications without platform complexity. Understand the execution model, see how they simplify server programming, and learn the migration path from traditional thread pools to virtual thread executors.
Chapter 9. Structured Concurrency
Master structured concurrency patterns that establish clear parent-child relationships between concurrent tasks, ensuring proper resource cleanup, cancellation propagation, and exception handling. See practical examples of coordinated task execution and timeout management.
Chapter 10. Scalability and Reactive
Explore reactive programming patterns and when to apply them alongside virtual threads. Understand backpressure, async composition, and the roles of frameworks like Project Reactor and RxJava in modern Java applications.