Launching 10 millions virtual threads with Loom - JEP Café #12

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

Live demo of the Java virtual threads from the JDK 19, previewing the Loom project.

⎯⎯⎯⎯⎯⎯ Chapters ⎯⎯⎯⎯⎯⎯
0:00 Intro
0:56 Reactive code versus blocking code
1:53 Creating and running platform and virtual threads with Loom
3:22 Introducing the VirtualThread class
3:55 Threads used by the JVM
4:06 Using a fork / join pool to run virtual threads
6:43 Making a virtual thread jump from one platform thread to another
7:59 Introducing continuations
9:04 Yielding a continuation
10:42 What is the price of blocking a virtual thread?
11:55 How many platform threads do you need to run your virtual threads?
13:34 Running 10 million virtual threads
14:25 When a virtual is pinned to a platform thread
15:38 Comparing classical synchronization and reentrant locks
18:13 Final words and outro

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

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

The JEP Café and the Inside Java Newscast were the best ideas for Java since introducing Lambdas.

themathmoth
Автор

Thanks. Always a pleasure enjoying my coffee here.

berenger
Автор

Thanks, very informative. :)
Where do I find the fancy regular expressions from @12:20?
(or: What would be reasonable?)
Thanks.

unbekannter_Nutzer
Автор

what a wonderful, informative, and insightful video, thank you 😊

svalyavasvalyava
Автор

Nice presentation. The way you showed the JDK code increased my interest. I am going to do the same in my local. Thanks

ubaidrehman
Автор

Great video! Looking forward to the Structured Concurrency video.

armandoprietopadron
Автор

I just discovered JEP Café. Omg... subscribed.

TheWhom
Автор

Un grand merci! I would love to see more about how Java uses virtual threads to make async programming easier! 🥰

whatValuesDoYouLiveBy
Автор

As usual another great video by Mr. Paumard. Please make such videos more frequently.

MakeItStik
Автор

Look at this amazing community, Java Community.

sadiulhakim
Автор

Very informative examples, great presentation. Keep it up. Thanks for publishing!
Java is awesome 👍

VisruthCV
Автор

Thank you, it's great video and I want to see Structure Concurrency next time too.

anhle
Автор

Great video, it would be good if you can make more videos on these topics!

AleksandarT
Автор

finally JEP cafe with some code hands on🔥

feryadialoi
Автор

This was just amazing. Looking forward to more of such talks.

anty_
Автор

Reminds me of Erlang/Elixir. Great to see something similar in Java.

aum
Автор

Nice video, looking forward to next one

seafront
Автор

Great explanation of Virtual Threads. If we could get more of the same with links to the code - that would be great. Thanks for a great presentation

johnbrinnand
Автор

I love simple explanation on complex topics like this. Thank you for your time and efforts to provide understandable piece of knowledge! Can't wait for the next topic. Btw, I was also drinking coffee while watching this.

triettruong
Автор

The yield-resume sounds like a safe version of stopping and resuming a thread, pretty cool

JorgetePanete