Java 19 Virtual Threads - JEP Café #11

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 ⎯⎯⎯⎯⎯⎯ ◦ The website ➱ ◦ JEP 425: Virtual Threads (Preview) ➱ ◦ JDK 18 ➱ ◦ JDK 19 ➱ ◦ OpenJDK ➱ ◦ Oracle Java ➱ Tags: #Java #Java19 #Loom #OpenJDK #JDK #JDK19 #ConcurrentProgramming #JEPCafe #InsideJava
Back to Top