Concurrency Patterns
摘要
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 with virtual threads to give you an idea of how to do so yourself.