What is `Project Loom`’s virtual thread and how does it differ from a platform thread?

Java Professional Hard

Java Professional — Hard

What is `Project Loom`’s virtual thread and how does it differ from a platform thread?

Key points

  • Virtual threads are JVM-managed and lightweight
  • Platform threads map 1:1 to OS threads
  • Virtual threads enable high concurrency without blocking OS threads
  • Platform threads are heavier and directly tied to OS threads

Ready to go further?

Related questions