10
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 ...
Get Java Coding Problems - Second Edition 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.