Java Virtual Threads Under Load: Three Limits to Make Explicit

Virtual threads let us keep ordinary blocking code while many more requests wait concurrently. Under load, however, that brings three critical questions into focus: How much work do we admit? Cheap threads can still build an expensive queue. What belongs inside a lock? A sleeping lock holder still makes everyone else wait. Who stops abandoned … Read more

Structured Concurrency in Java 26: API Polishing, Timeouts, and Better Joiners

Structured concurrency has reached its sixth preview in Java 26 through JEP 525, and at this point, it’s no longer experimental in spirit. The idea is simple and surprisingly powerful: if you start a few related tasks together, you should manage them together. They succeed or fail as a unit. This sounds obvious, but it’s … Read more

Java’s Structured Concurrency: Finally Finding Its Footing

The structured concurrency API changed again after two incubations and four rounds of previews. Ideally, this scenario is unexpected. However, given its status as a preview API, such changes can occur, as was the case here. These changes lend considerable maturity to the API, and I am hopeful it will now stabilize without requiring further … Read more

How to Diagnose and Mitigate Pinning in Java’s Virtual Thread Execution

In the context of virtual threads, pinning refers to the condition where a virtual thread is “stuck” to its carrier thread (the platform thread on which it runs).

Web Crawling in Java: A Tale of Classical Threads and Virtual Threads

A compelling narrative around web crawling in Java, contrasting classical threads with their newer counterpart: virtual threads.

Preparing for JDK 21: A Comprehensive Overview of Key Features and Enhancements

As we inch to the release of JDK 21 in September (next month!), get familiar with the features and improvements this version will bring!

Java Threads Reimagined: A Reflection on JConf Toronto 2023 and the Dawn of a New Era of Concurrency

Experience the intersection of expertise, innovation, and camaraderie at JConf Toronto 2023, a unique platform.