GeeCON 2023 Prague: David Vlijmincx - Introduction and pitfalls of virtual threads

youtube.com 11 miesięcy temu


Java 21 releases 1 of the most anticipated features, virtual threads, and previews structured concurrency. It rethinks the way multithreading works in Java. It was born out of the thought that reactive Java is besides complicated and blocking threads should be cheap. Resulting in the fresh virtual threads that we run thousands of! The aim of virtual threads and structured concurrency is to have high-throughput lightweight threads and fresh programming models on the Java platform. In this talk, I will show virtual threads and how to make and manage them utilizing structured concurrency. Furthermore, I'll supply any applicable advice to avoid pitfalls erstwhile you start utilizing virtual threads in your application