menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

How Java V...
source image

Dev

1M

read

67

img
dot

Image Credit: Dev

How Java Virtual Threads Work?

  • Virtual Threads are lightweight threads introduced in Java 19 (Preview) and Java 21 (Stable).
  • Virtual Threads do not map 1:1 to OS Threads and do not replace the original Platform Threads.
  • Virtual Threads run on top of Platform Threads. The JVM schedules them onto a small number of Platform Threads.
  • If the Virtual Thread performs a blocking operation, the JVM unmounts it from the Platform Thread, freeing it up for other Virtual Threads.

Read Full Article

like

4 Likes

For uninterrupted reading, download the app