错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Concurrency Patterns

  • Ron Veen,
  • David Vlijmincx

摘要

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.