Java Virtual Threads
summary
Project Loom brings virtual threads to Java as an alternative concurrency model for asynchronous programming. It explains that virtual threads are lightweight, JVM-managed threads that can be created and handled in very large numbers, describes the new language/runtime concepts developed so far, and discusses when to use virtual threads versus traditional OS threads.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:26Model of a Program Execution
- 2:43Thread Data (Stack)
- 4:29Idea: Multithreading
- 6:23Technical Implementation (Early: Green Threads)
- 7:54Technical Implementation (Today)
- 11:05Problem: Waiting Threads
- 12:53Virtual Thread Scheduling
- 17:21Coroutine Principle
- 26:56"Execution" of a Continuation
- 29:02Example: Handling Tasks
- 29:57Scaling with Continuations
- 33:41Handling Blocking Calls
- 35:38Calling a Blocking Method
- 42:23"Rewritten" Classes
- 43:05Structured Concurrency
- 43:36Impact on Application Design
- 45:38Further Concepts (Preview)
- 46:12Summary and Outlook
related talks
47mThe Challenges of Introducing Virtual Threads to the Java Platform - Project Loom
31mJava Virtual Threads
53mVirtual Threads: Ushering in a New Era of Concurrency
51mWhat's Looming in Java The Why and What of Project Loom
01h 00mLoom Virtual Threads in the JDK 20
51mThe Future of Java: asynchronous programming with Loom
01h 13mProject loom: Modern scalable concurrency for the Java platform
49mEven threads are now virtual:past, present, future of concurrency in Java.
