Concept
Lightweight threads from Project Loom, and when they replace a thread pool.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Virtual threads doing its job.
try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
List<Future<String>> pages = urls.stream()
.map(url -> executor.submit(() -> fetch(url))) // blocking is fine here
.toList();
for (var page : pages) System.out.println(page.get().length());
}
// Spring Boot: spring.threads.virtual.enabled=truePooling virtual threads or holding a synchronized block around blocking I/O. Both pin the virtual thread to its carrier and lose the benefit; create them freely and prefer ReentrantLock around blocking calls.
Your roadmap puts these before Virtual threads, unless you already know them.
Once a session shows you understand Virtual threads, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.