Java Language & PlatformJava Language & Platform
Conference50min
INTERMEDIATE

Structured Concurrency Looms

Structured Concurrency in Project Loom builds on virtual threads to simplify concurrent programming by treating related tasks as one unit. It improves cancellation, error handling, and observability, and makes code easier to understand and debug. The session covers its design, usage, evolution, and future lower-level API work.

talk.summaryAiDisclaimer

Alan Bateman
Alan BatemanOracle

talkDetail.whenAndWhere

Wednesday, October 7, 12:00-12:50
TBA 9
talks.roomOccupancytalks.noOccupancyInfo
talks.description
Structured Concurrency is the next major feature from Project Loom. Following the introduction of Virtual Threads in JDK 21, which dramatically reduced the effort of writing, maintaining, and observing high-throughput concurrent applications, structured concurrency raises the level of abstraction for concurrent programming. It treats groups of related tasks as a single unit of work, simplifying cancellation, error handling, and observability while making concurrent code easier to understand, maintain, and debug.

The feature has evolved through several preview releases, shaped by extensive real-world experience and community feedback. Despite its small surface area, the API enables a wide range of structured concurrency patterns.

In this session, we will explain the motivation and design of structured concurrency, show how to use it effectively, and discuss the lessons learned as the feature evolved. We'll also look beneath the surface at the new lower-level API behind the latest design, offering an early glimpse of work that is expected to form the basis of a future lower-level structured concurrency API.

projectloom
structuredconcurrency
concurrency
virtualthreads
talks.speakers
Alan Bateman

Alan Bateman

Oracle

Ireland

Alan Bateman is an architect in the Java Platform Group at Oracle and a long-time contributor to OpenJDK. He leads the OpenJDK Core Libraries Group and has helped shape the evolution of the Java platform through the design and implementation of many JDK features, including New I/O (NIO), JVMTI and serviceability, the Java Module System, and, more recently, Project Loom.