Loom Virtual Threads in the JDK 20
summary
Loom brings cheap, JVM-level threads that detach tasks from platform threads by suspending stacks to the heap via continuations, enabling nonblocking IO at scale; demos show 1 million virtual threads in <6s, start times in microseconds and per-thread memory ~100KB now (goal ~10KB), and a Spring Boot demo using newVirtualThreadPerTaskExecutor with stack traces showing continuation yield/run suspension. Virtual threads migrate across platform workers, pin when synchronized or calling native code, and target IO-heavy workloads (not CPU-bound parallelism); structured concurrency and scope values are incubating.
AI-written summary · about
chapters (4)
- 0:00Start
- 9:532004: Java Util Concurrent
- 55:44The Travel Agency Example
- 56:43Stuctured Concurrency Based Travel Agency
related talks
53mVirtual Threads: Ushering in a New Era of Concurrency
51mWhat's Looming in Java The Why and What of Project Loom
47mThe Challenges of Introducing Virtual Threads to the Java Platform - Project Loom
47mConcurrent and Asynchronous Programming: Loom in Java 20 and 21
31mJava Virtual Threads
01h 13mProject loom: Modern scalable concurrency for the Java platform
52mJava Virtual Threads
49mPrepare for what “Loom”s ahead.
