Java New Concurrency Model: Introduction & Pitfalls

Java New Concurrency Model: Introduction & Pitfalls

Java 20 will preview one of the most anticipated features, virtual threads, and structured concurrency. It rethinks the way multithreading works in Java. It was born out of the idea that reactive Java is too complicated and blocking threads has to be cheap. Resulting in the new virtual threads that we run thousands of!

The aim of virtual threads and structured concurrency is to have high-throughput lightweight threads and new programming models on the Java platform. This talk will demonstrate virtual threads and how to create and manage them using structured concurrency. Furthermore, it provides some practical advice to avoid pitfalls when you start using virtual threads in your application.

Video producer: https://cphdevfest.com/