Virtual threads are, as you have learned throughout this book, a completely different type of threads than we had before in Java. They come with their own benefits and drawbacks. In this chapter, we will show you a way to reason about these threads. We start off with reasoning about virtual threads as tasks. Later, we will show you how to use these threads in your own Spring and Quarkus applications. We finish this chapter by implementing some common algorithms ...
4. Concurrency Patterns
Get Virtual Threads, Structured Concurrency, and Scoped Values: Explore Java’s New Threading Model now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.