Why user-mode threads are (often) the right answer
summary
Project Loom adds virtual threads to OpenJDK so a JVM can host millions of user‑mode threads scheduled onto a few OS carrier threads, transparently turning blocking JDK IO into nonblocking operations under the hood. The VM prototype reports about 200 ns for a context switch and aims for parity with existing Thread APIs, debuggers and JFR. The implementation spans VM changes, library shims and schedulers, has monthly early‑access builds, and already demonstrates practical scalability with conventional synchronous code.
AI-written summary · about
chapters (16)
- 0:00Introduction and speakers
- 2:22Project Loom mission and virtual threads
- 7:21Synchronous vs asynchronous programming trade-offs
- 9:30Little's Law and concurrency explained
- 13:05Thread pools and their limitations
- 20:55Virtual threads vs platform threads design
- 28:29Algorithmic vs syntactic concurrency perspectives
- 33:51Processes and threads as state machines
- 39:56Async/await vs threads semantic differences
- 45:42Resizable stacks and language constraints
- 51:27Performance metrics: latency, throughput, impact
- 57:34Why Java chose user-mode threads
- 1:00:09Language comparison insights
- 1:02:17Current Project Loom implementation status
- 1:05:11Feedback and early access builds
- 1:07:27Q&A and future JDK releases
