Fruits of the Loom – Lightweight Concurrency For the Java Platform
summary
Project Loom prototypes add continuations and fibers plus a fiber scope for structured concurrency; continuations capture execution, fibers are many‑to‑many user threads with ~300‑byte metadata and pay‑as‑you‑go stacks. A custom fiber thread executor for Tomcat (built with Gradle, Spring services, OpenJDK Loom EA) runs load tests via an attack script: fibers handle 1,000 req/s on two kernel threads with 100% success, while plain java.lang.Threads hit only ~58% success at 10 req/s. Limitations: cannot yield when holding native monitors or native stacks.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:35Project Loom overview
- 4:28Defining threads
- 7:20Thread implementation models
- 11:22Limitations of current Java
- 15:17Continuations
- 21:47Fibers
- 27:01Structured concurrency
- 30:20Demo and conclusion
related talks
42mProject Loom Update
35mUntangled: Sneak peek at Project Loom
29mUntangled: Sneak peek at Project Loom
36mProject Loom
39mProject Loom: Modern Scalable Concurrency for the Java Platform
59mContinuations and Fibers: The New Frontier for Java
50mProject Loom: Helping Write Concurrent Applications on the Java Platform
54mLooming in the cores
