3

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

 1 year ago
source link: https://www.youtube.com/watch?v=UVoGE0GZZPI
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
#Java #Loom #OpenJDK

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

107K subscribers

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 ⎯⎯⎯⎯⎯⎯ ◦ The Dev.java website ➱ https://dev.java/ ◦ JEP 425: Virtual Threads (Preview) ➱ https://openjdk.org/jeps/425 ◦ JDK 19 ➱ https://openjdk.org/projects/jdk/19/ ◦ OpenJDK ➱ https://openjdk.org/ ◦ Oracle Java ➱ https://www.oracle.com/java/

Tags: #Java #Java19 #Loom #VirtualThreads #OpenJDK #JDK #JDK19 #ConcurrentProgramming #InsideJava

Show lessShow more


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK