Project Loom: Modern Scalable Concurrency for the Java Platform
summary
Project Loom adds virtual threads to the JDK as lightweight, JVM‑managed threads with dynamically growing stacks scheduled onto a few OS carrier threads, offering microsecond switching and a few hundred bytes of metadata so concurrency scales far beyond traditional platform threads. It provides a thread executor that spawns a virtual thread per task, structured join semantics via AutoCloseable so lifetimes match code, combinators like invokeAny/invokeAll, and known limits (blocking JNI, blocking while holding synchronized) with Jetty tests showing improved scalability.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 0:53What is concurrency
- 5:18What are threads
- 6:55What are synchronous threads
- 8:11Spread calls
- 10:31Waiting for IO
- 13:01Asynchronous
- 13:29Developers Dilemma
- 13:59Unlimited Threads
- 14:52Rethinking Threads
- 16:02Thread API
- 17:42Platform Thread
- 18:57Virtual Threads
- 20:15Platform Virtual Threads
- 21:02Creating Virtual Threads
- 22:14Downsizing Threads
- 23:28Structured Concurrency
- 24:51Unstructured Structured
- 25:10Thread Executor
- 28:45Invoke Any
- 30:00Questions
- 37:50Collections
related talks
50mProject Loom: Helping Write Concurrent Applications on the Java Platform
01h 13mProject loom: Modern scalable concurrency for the Java platform
51mWhat's Looming in Java The Why and What of Project Loom
32mProject Loom? Better Futures? What’s next for JVM concurrent programming
47mThe Challenges of Introducing Virtual Threads to the Java Platform - Project Loom
31mJava Virtual Threads
42mProject Loom Update
01h 00mProject Loom? Better Futures? What’s next for JVM concurrent programming
