What is Looming in Java
summary
Project Loom lands as JDK 21 virtual threads that let Java create thousands of lightweight threads mapped onto a handful of OS threads; a demo replaces a platform thread startup that takes 126s vs 17s startup with virtual threads, creates 50 virtual threads backed by nine platform threads on a 12‑logical‑core laptop, and uses the new executor factory Executors.newVirtualThreadPerTaskExecutor. Virtual threads dramatically help IO‑bound servers, remove fixed thread pools, and show little win for CPU‑bound heavy computation.
AI-written summary · about
