Book description
Welcome to the future of Java. With this book, you'll explore the transformative world of Java 21's key feature: virtual threads. Remember struggling with the cost of thread creation, encountering limitations on scalability, and facing difficulties in achieving high throughput? Those days are over. This practical guide takes you from Java 1.0 to the cutting-edge advancements of Project Loom.
You'll learn more than just theory. Author A N M Bazlur Rahman equips you with a toolkit for taking real-world action. Take a deep dive into the intricacies of virtual threads and complex topics such as ForkJoinPool, continuation, rate limiting, debugging, and monitoring. You'll not only learn how they work, but you'll also pick up expert tips and tricks to help you master these concepts. And you'll learn about structured concurrency and scoped values—critical skills for building Java applications that are scalable and efficient.
- Get an in-depth understanding of virtual threads
- Understand the implementation of virtual thread internals
- Gain performance improvement in blocking operations
- Learn why structured concurrency is beneficial
- Know where to use scoped value
- Understand the relevance of reactive Java with the advent of virtual threads
A N M Bazlur Rahman is a software engineer with over a decade of experience in Java and related technologies. A speaker at various international conferences and Java user groups, his talks often focus on specialized topics such as concurrency and virtual threads.
Publisher resources
Table of contents
- Brief Table of Contents (Not Yet Final)
- 1. Introduction
-
2. Understanding Virtual Threads
- What is a Virtual Thread
- Setting Up Your Environment for Virtual Threads
- Adapting to Virtual Threads
- Demonstrating Virtual Thread Creation in Java
- How Virtual Threads Work Under the Hood
- Managing Resource Constraints with Rate Limiting
- Limitations of Virtual Threads
- The Conundrum of ThreadLocal Variables in Virtual Threads
- Generating Thread Dumps with HotSpotDiagnosticsMXBean
- Practical Tips for Migrating to Virtual Threads
- In Closing
- 3. The Mechanics of Modern Concurrency in Java
- 4. Structured Concurrency
- About the Author
Product information
- Title: Modern Concurrency in Java
- Author(s):
- Release date: September 2025
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098165413
You might also like
video
Java Concurrency and Multithreading in Practice
Improve the performance of your application by using modern Java's multithreading features About This Video Increase …
book
Java Concurrency in Practice
"I was fortunate indeed to have worked with a fantastic team on the design and implementation …
book
Modern Java in Action
Manning's bestselling Java 8 book has been revised for Java 9 and 10! In Modern Java …
video
Java SE 17 Developer (1Z0-829)
21+ Hours of Video Instruction An intensive and guided video course to learn and practice while …