Virtual Threads

Talks

The Java Sessions: Virtual Threads, Structured Concurrency, and Scoped Values

There is a new way of Threading, which means it is time to prepare. Project Loom has introduced Java Virtual Threads, which is now available in Java 21. Virtual Threads are small Threads meant to perform quick operations with the need to procure long-running OS threads, which can prove expensive. In this presentation, we will learn how to use these threads, what does it mean in relationship with the rest of the Java API, and what does it mean for third-party libraries.

Articles

Virtual Threads and Structured Concurrency

Virtual Threads and Structured Concurrency are complementary features from Project Loom that simplify concurrency in Java. Virtual Threads** make concurrency cheap and scalable. They allow a “thread-per-task” style without exhausting OS resources. Structured Concurrency makes concurrency safe and predictable. It groups concurrent tasks into a scope so their lifetimes, errors, and cancellations are managed together.