Virtual Threads and Structured Concurrency in Java 21 With Loom

Описание к видео Virtual Threads and Structured Concurrency in Java 21 With Loom

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.

Speaker: José Paumard

Join us:
Website: https://jb.gg/website
Blog: https://jb.gg/blog
Twitter:   / intellijidea  
Facebook:   / intellijidea  

Download IntelliJ IDEA: https://jb.gg/download-intellij-idea
Top 15 IntelliJ IDEA shortcuts: https://jb.gg/Top15IntelliJIDEAShortcuts

#concurrency #virtualthreads #concurrentprogramming

Комментарии

Информация по комментариям в разработке