Java 19 Virtual Threads - JEP Café #11

preview_player
Показать описание

What are virtual threads, the new model for threads, added to the JDK 19 as a preview feature by the Loom project.

⎯⎯⎯⎯⎯⎯ Chapters ⎯⎯⎯⎯⎯⎯
0:00 Intro
0:42 What are preview features, and how you can use them
3:34 What are Virtual Threads about?
4:21 Goals of Virtual Threads
5:11 Cost of a platform thread and CPU usage
7:49 How to use Virtual Threads
9:11 Using ExecutorServices with Virtual Threads
11:04 ThreadLocals and Synchronization
11:19 Synchronization, pinned threads and locks
13:14 Final words and outro

⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯

Tags: #Java #Java19 #Loom #OpenJDK #JDK #JDK19 #ConcurrentProgramming #JEPCafe #InsideJava
Рекомендации по теме
Комментарии
Автор

I would love to see some patterns and real world problems solved with the new virtual threads 😊

jpomykala
Автор

Agree - some code in action with best practices will be super helpful.

kappaj
Автор

yes, some code in action and best practices would be nice to see... Thanks!

IhorParashynets
Автор

4 minutes into the video and finally you are on the topic.

tomassatas
Автор

Yes, please! It would be great to see some examples and patterns!

ivandenysenko
Автор

Really like the explanation of the motivation, it addressed the question of "but why is this a problem when we have thread pools?" I think the preview feature explanation in the first few minutes could be removed though, it's not the first preview feature and I'm sure the whole idea of previews is explained elsewhere but still, a nice reminder.

nO_dNAL
Автор

Wow... a super awesome explanation and I am really excited to explore Virtual threads.

HarmeetSingh
Автор

Gosh can't wait when I start use all this staff like semaphores and lock I learned for interviews!

Sergey
Автор

I'm super thrilled by Virtual Threads but I feel will take so long before using in PROD env

marcoborgna
Автор

welcome back, yes we would like to see examples

ahmadfx
Автор

Very informative video, thanks for publishing!
11:54 is very important point!

VisruthCV
Автор

Some example and how things work under the hood would be amazing episodes.

mars
Автор

Nicely explained, thank you! Question what would be the impact of this on reactive programming?

itlearner
Автор

The end of Reactor pattern that i hate him, end to learn of go that i hate him also, I hope it will be in production as soon as possible, Thanks i love java

ahmedbouchaibi
Автор

Of course, code examples are always good.

bentels
Автор

Great session. Thanks! I would like to see some code in action as well.

NastyaSmirnova
Автор

Greate vid!!

A thread reserves upfront 20MB in memory? can i get more detail information about it?

ricklee-tjbu
Автор

Show some examples with vthreads with blocking queries to db.

sommyaruproy
Автор

Congrats!!! Very cool explanation! Next step: show me the code! 😁

romulopaiva
Автор

Thank you for the informative presentation, and we wish to see code.

Concat