Re:Java Virtual Threads: A Case Study
by zokier on Wednesday July 17, 2024 @02:38AM
(#40983151)
> Can the JVM do threads better than the OS?
Yes. The JVM has far more opportunities for optimizing threads because it doesn't need to uphold 50 years of accumulated invariants and compatibility that current OSes do, and JVM has more visibilty on the application internals.
Yes. The JVM has far more opportunities for optimizing threads because it doesn't need to uphold 50 years of accumulated invariants and compatibility that current OSes do, and JVM has more visibilty on the application internals.