LiveStream Livestreams

New Livestream: Virtual Threads and Structured Concurrency in Java 21 With Loom

Updated on 13/12/2023.

On May 25, 2023, we hosted our IntelliJ IDEA LiveStream with José Paumard to learn how to work with virtual threads.

Session abstract

Loom brought 2 preview features in Java 19: virtual threads and structured concurrency. Virtual threads are a new model of thread that is compatible with the current platform threads but much lighter. You can easily launch millions of virtual threads on a machine that would only support a few thousand platform threads. Virtual threads should be made final in JDK 21. Structured concurrency leverages this feature to write asynchronous code in a very easy way. It is built on an imperative mono-thread programming model built on top of virtual threads. These elements have been updated in Java 20. Java 20 also has a third preview feature delivered by the Loom project: a new model for ThreadLocal variables called ScopedValues that is meant to work with virtual threads. This presentation shows you how this all works, the new pattern you will be able to use for your asynchronous systems, and the performance you may expect.

Asking questions

José will try to answer all of your questions during the session. If we run out of time, we’ll post the answers to any remaining questions in a follow-up blog post. We’ll do our best to get all of your questions answered.

Your speaker and host

Speaker

Jose Paumard

José Paumard

José works as Java Developer Advocate at Oracle. With a PhD in applied mathematics and computer science, he was an assistant professor at the University Sorbonne Paris Nord for 25 years, and is now a Java Champion Alumnus and JavaOne Rockstar. He is a member of the French Paris Java User Group, has been a co-organizer of the Devoxx France conference, and is a disorganizer of JChateau, an unconference held in the Chateau of the Loire Valley. He works on the dev.java documentation website and publishes the JEP Café, a monthly video cast on YouTube. He is also a Pluralsight author in the Java space.

Speaker Twitter handle: twitter.com/JosePaumard

Speaker Github repo: github.com/JosePaumard

Host

Mala Gupta

A Java Champion and JUG leader, Mala has authored multiple books with Manning, Packt, and O’Reilly Publications. An international speaker at industry conferences, she has more than 2 decades’ experience in the software industry. She has been actively supporting Java certification as a path to career advancement.

Happy developing!

image description