Concurrency – Virtual Threads and Structured Concurrency
This chapter includes 16 problems that briefly introduce virtual threads and structured concurrency.
If you don’t have a background in concurrency in Java, then I strongly recommend postponing this chapter until after you have read some good introductory coverage on the topic. For instance, you could try out Chapters 10 and 11 from Java Coding Problems, First Edition.
Virtual threads are one of the most important and astonishing features added by Java in the last few years. They have a significant impact on how we will continue to write and understand concurrent code from this point forward. In this chapter, you’ll learn, step by step, every single detail of this topic and the structured concurrency paradigm.
After this chapter, you’ll be quite knowledgeable in working with virtual threads and structured concurrency.