0:00 / 0:00
#virtualthreads#continuations#projectloom
Continuations: The magic behind virtual threads in Java by Balkrishna Rawool
Devoxx
172K subscribers • 52 videos on Hallway • Conference channel
- One of the most-watched uploads on Devoxx, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
- Presented by Balkrishna Rawool
Advanced. Deep dive for people who know the field.
8.5K views2 years ago
Programming languagesSystems programmingJava and the JVMConcurrency and parallelismPerformance and optimization
Balkrishna Rawool explains how continuations power virtual threads in Java and demonstrates how to build a simple virtual thread class.
Have you wondered how virtual threads in Java are able to provide such high scalability? How is JVM able to switch between so many virtual threads while executing a single platform thread? If you did then this talk is for you.A Continuation is the magic that powers Virtual Threads. It can be viewed as a representation of the current state of the program or it can be viewed as a reference to the rest of the program. It helps us to pause execution of a program (or part thereof) and then resume it later. This ability to pause/resume is a powerful mechanism and is the basis for providing virtual threads.In this talk, we will start with explaining what continuations are and how does Continuation API in Java work. We will also explore the uses of continuations. And more importantly, we will write our own simple VirtualThread class using the Continuation API provided by JDK. This gives clear idea about the role of continuations in the nature of virtual threads.Why it's here
A top upload from a listed channelDevoxx is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.