Overview
This talk explores the underlying mechanism of virtual threads in Java, focusing on Continuations as the key technology enabling their high scalability. Discover how the JVM manages to switch between numerous virtual threads while executing on a single platform thread. Learn what Continuations are—representations of a program's current state that allow pausing and resuming execution—and understand their practical applications. Through a hands-on demonstration of building a simple VirtualThread class using the Continuation API provided by JDK, gain clear insights into how this powerful mechanism forms the foundation of Java's virtual threads implementation. Perfect for developers curious about the inner workings of this performance-enhancing feature in modern Java.
Syllabus
Continuations: The magic behind virtual threads in Java by Balkrishna Rawool
Taught by
Devoxx