© Ron Veen and David Vlijmincx 2024
R. Veen, D. VlijmincxVirtual Threads, Structured Concurrency, and Scoped ValuesApress Pocket Guideshttps://doi.org/10.1007/979-8-8688-0500-4_4

4. Concurrency Patterns

Ron Veen1   and David Vlijmincx2
(1)
ENSCHEDE, The Netherlands
(2)
HELMOND, The Netherlands
 

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 ...

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.