Тёмный

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

Spring I/O
Подписаться 32 тыс.
Просмотров 4,5 тыс.
50% 1

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

Наука

Опубликовано:

 

27 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@vizply2986
@vizply2986 День назад
we need more of this kind of JDK internals unravelling. enjoyed watching the vid
@ShubhamYadav-lt6dt
@ShubhamYadav-lt6dt 2 дня назад
One of the best session that i have ever watched to understand virtual thread
@HasanKumas-bn1ye
@HasanKumas-bn1ye 3 дня назад
Quite interesting topic with a great presentation! Thanks a lot Bala!
@bowenwang
@bowenwang 6 дней назад
An in-depth presentation
@costathoughts
@costathoughts 6 дней назад
That is an 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
@sakshamgupta8736
@sakshamgupta8736 4 дня назад
Great talk!
@KushParsaniya
@KushParsaniya 6 дней назад
amazing talk!
@anug14
@anug14 3 дня назад
Give a short version too pls
@razatech22
@razatech22 6 дней назад
Expecting a real world application using threads
Далее
Четыре тормоза
00:53
Просмотров 25 тыс.
Java Language Futures - Spring 2024 Edition
50:47
Просмотров 15 тыс.
When you have 32GB RAM in your PC
0:12
Просмотров 386 тыс.
When you have 32GB RAM in your PC
0:12
Просмотров 386 тыс.