JDK 21
A version of the standard development kit for the Java platform, introducing features such as virtual threads that improve throughput in high-concurrency scenarios.
Timeline (last 90 days)
JDK 21 virtual threads are lightweight thread implementations scheduled by the JVM, with extremely low creation cost, and a single machine can support millions of virtual threads; traditional platform threads correspond one-to-one with operating system threads, and each thread occupies about 1MB of stack space.
Virtual threads automatically yield the carrier thread when blocked, so they can significantly improve throughput for I/O-intensive workloads; the original claim of "nearly 300% performance improvement" should be understood as a throughput comparison under a specific stress-test scenario, and the actual benefit depends on the proportion of I/O waiting.
All Facts (2)
JDK 21 virtual threads are lightweight thread implementations scheduled by the JVM, with extremely low creation cost, and a single machine can support millions of virtual threads; traditional platform threads correspond one-to-one with operating system threads, and each thread occupies about 1MB of stack space.
50%UnverifiedVirtual threads automatically yield the carrier thread when blocked, so they can significantly improve throughput for I/O-intensive workloads; the original claim of "nearly 300% performance improvement" should be understood as a throughput comparison under a specific stress-test scenario, and the actual benefit depends on the proportion of I/O waiting.
50%