Virtual Threads and Structured Concurrency in Java 21 With Loom

Опубликовано: 01 Январь 1970
на канале: IntelliJ IDEA, a JetBrains IDE
30,966
981

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


Смотрите видео Virtual Threads and Structured Concurrency in Java 21 With Loom онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь IntelliJ IDEA, a JetBrains IDE 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 30,966 раз и оно понравилось 981 людям.