Continuations: The magic behind virtual threads in Java by Balkrishna Rawool @ Spring I/O 2024

  Рет қаралды 9,784

Spring I/O

Spring I/O

Күн бұрын

Spring I/O 2024 - 30-31 May, Barcelona
Slides: speakerdeck.co...
Repo: github.com/bal...
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.

Пікірлер: 17
@vizply2986
@vizply2986 2 ай бұрын
we need more of this kind of JDK internals unravelling. enjoyed watching the vid
@ShubhamYadav-lt6dt
@ShubhamYadav-lt6dt 3 ай бұрын
One of the best session that i have ever watched to understand virtual thread
@bowenwang
@bowenwang 3 ай бұрын
An in-depth presentation
@kaqqao
@kaqqao 2 ай бұрын
I love this "peeling back a layer", deepdive type of talk way, way more than the usual wide but superficial variety. Brilliantly done.
@chethand.n.7384
@chethand.n.7384 8 күн бұрын
awesome explanation of virtual threads !! thanks for this :)
@costathoughts
@costathoughts 3 ай бұрын
That is an amazing talk !!!!
@tilekzholdoshbek726
@tilekzholdoshbek726 Ай бұрын
spectacular explanation with clear and simple to comprehend demos
@sriramsri1991
@sriramsri1991 2 ай бұрын
Superb talk
@sakshamgupta8736
@sakshamgupta8736 3 ай бұрын
Great talk!
@HasanKumas-bn1ye
@HasanKumas-bn1ye 3 ай бұрын
Quite interesting topic with a great presentation! Thanks a lot Bala!
@virajsh
@virajsh 2 ай бұрын
Great presentation
@KushParsaniya
@KushParsaniya 3 ай бұрын
amazing talk!
@KravchenkoIvan94
@KravchenkoIvan94 3 ай бұрын
Thank you! Great talk, the first 40 minutes are quite good but you lost me in the last ten ones, I had to rewatch it
@razatech22
@razatech22 3 ай бұрын
Expecting a real world application using threads
@mukut5ul
@mukut5ul 2 ай бұрын
Why not use Erlang. Erlang solved these problems in 1970s and almost all system in scandavian, nordik and russia uses erlang.
@dhanushc5744
@dhanushc5744 2 ай бұрын
rest of the world uses Java , Go, C, CPP
@anug14
@anug14 3 ай бұрын
Give a short version too pls
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН
Asynchronous Programming in Java using Virtual Threads, Venkat Subramaniam
49:16
Bulgarian Java User Group
Рет қаралды 12 М.
Java 21 new feature: Virtual Threads #RoadTo21
33:35
Java
Рет қаралды 64 М.
Bootiful Spring Boot 3.x by Josh Long @ Spring I/O 2024
54:26
Spring I/O
Рет қаралды 28 М.
Virtual Threads in Java 21
17:22
Will Tollefson
Рет қаралды 4,7 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 274 М.
Reactive Spring Boot With Kotlin Coroutines: Adding Virtual Threads
1:23:41
Kotlin by JetBrains
Рет қаралды 12 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН