Skip to Content
Java Coding Problems - Second Edition
book

Java Coding Problems - Second Edition

by Anghel Leonard
March 2024
Intermediate to advanced
798 pages
18h 48m
English
Packt Publishing
Content preview from Java Coding Problems - Second Edition

11

Concurrency ‒ Virtual Threads and Structured Concurrency: Diving Deeper

This chapter includes 18 problems meant to dive deep into how virtual threads and structured concurrency work and how they should be used in your applications.

If you don’t have a background in concurrency in Java then I strongly recommend postponing this chapter until you read some good introductory coverage on this topic. For instance, you could try out Chapter 10 and Chapter 11 from Java Coding Problems, First Edition.

We start this chapter by explaining how virtual threads work internally. This will be helpful to help you better understand the subsequent problems about extending and assembling StructuredTaskScope, hooking ThreadLocal and virtual threads, avoiding ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Coding Problems

Java Coding Problems

Anghel Leonard
Head First Java, 3rd Edition

Head First Java, 3rd Edition

Kathy Sierra, Bert Bates, Trisha Gee
Learning Java, 6th Edition

Learning Java, 6th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
The Well-Grounded Java Developer, Second Edition

The Well-Grounded Java Developer, Second Edition

Benjamin Evans, Martijn Verburg, Jason Clark

Publisher Resources

ISBN: 9781837633944Supplemental Content