Topic Hub · 17 Articles
Java Virtual Threads, Structured Concurrency & Project Loom Hub
Deep-dive engineering guides, JMH benchmarks, and production architecture patterns for Java Virtual Threads, Structured Concurrency (StructuredTaskScope), and Scoped Values in JDK 21–26. Learn how carrier scheduling, heap StackChunk unmounting, and thread pinning work under the hood.
2026
1 Article2024
3 Articles2023
7 ArticlesDec 11
Java Scoped Values Tutorial: Faster, Safer Alternative to ThreadLocal
Jun 15
4 Ways to Create Virtual Threads in Java 21+
Jun 14
How to Detect Pinned Virtual Threads in Java (-Djdk.tracePinnedThreads & JFR)
Jun 09
Using ExecutorService, Future & invokeAll with Java Virtual Threads (JDK 21+)
Apr 27
3 Ways to Name Virtual Threads in Java for Better Debugging
Apr 24
How to Configure the Java Virtual Thread Scheduler (Parallelism & Pool Size)
Feb 23
Java Virtual Threads Explained: Architecture, Creation & Performance (JDK 21–26)
2022
6 ArticlesNov 01
How to Implement a Custom StructuredTaskScope in Java
Sep 19
Running Multiple Threads in Java and Getting the First Result (invokeAny vs. ShutdownOnSuccess)
Sep 12
Java Virtual Threads Production Pitfalls: Thread Pinning, ThreadLocals & Pooling Traps
Sep 08
How Many Java Virtual Threads Can Run in Parallel?
Jun 28
Structured Concurrency in Java: StructuredTaskScope, ShutdownOnFailure, ShutdownOnSuccess & Deadlines
May 13
Building a High-Throughput Web Crawler in Java with Virtual Threads