Тёмный

Game of Loom: implementation patterns and performance implications playing with virtual threads 

Devoxx
Подписаться 159 тыс.
Просмотров 5 тыс.
50% 1

Virtual threads will be very likely the next big game changer in the Java ecosystem, allowing to have the scalability of asynchronous programming models with the simplicity of synchronous code. Their main claim is that, differently from native threads that are a costly and then scarce resource, you can create as many virtual threads as you want with known and much cheaper memory and performance impact than the native ones. But is this always true? What are the costs of scheduling thousands or even millions of virtual threads? Does the more frequent context switch have some performance implications? What about the cache misses that these context switches could potentially imply? During this talk we will try to answer these questions in a funny way, by analyzing an implementation of the traditional Conway's Game of Life based on the communicating sequential processes (CSP) model and using both virtual and native threads with different algorithms in order to compare their performances. Based on this analysis we will also try to derive some rules of thumb on when and how using virtual threads.
MARIO FUSCO
Mario is a senior principal software engineer at Red Hat working as Drools project lead. Among his interests there are also functional programming and Domain Specific Languages. He is also a Java Champion, the JUG Milano coordinator, a frequent speaker and the co-author of "Modern Java in Action" published by Manning.
------------------------------------------------------------
INTRO
visuals & editing by @Mercator
music : Avocado by Ephixa

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
When Khabib dropped Conor McGregor 👀 #nocommentary
00:59
다리찢기 고인물⁉️😱 Leg Splits Challenge
00:37
PyData Skopje October 2024 - RAG-ing Ahead
2:17:46
Java 21 new feature: Virtual Threads #RoadTo21
33:35
Просмотров 65 тыс.
Confessions of a Rusty Java developer by Alex Snaps
50:33
Loom is Looming by Jose Paumard
2:42:52
Просмотров 7 тыс.