intermediateVirtual Threads & GraalVM

What are Virtual Threads and how do they differ from platform (OS) threads?

Platform threads map 1:1 to OS threads — expensive to create in large numbers. Virtual threads are lightweight, JVM-managed threads (not OS-backed 1:1), cheap enough to create millions of. They don't make code faster; they make blocking code scalable, since a blocked virtual thread doesn't tie up an OS thread.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What are Virtual Threads and how do they differ from platform (OS) threads?

Next Step

Continue to How do you enable Virtual Threads in Spring Boot 3.2+?← Back to all Spring Boot & Microservices questions