Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes it does, that is why originally there were green and red threads, the language specification doesn't require which kind exactly a JVM implementation should provide.

Also since Java Loom project, it has virtual threads.

Additionally, since at least a decade you could your own thread scheduling if feeling so inclined to do some low level coding, as the scheduling architecture is customisable.




Greenthreads were abandoned long ago and aren't present in any mainstream JVM. I don't know about Loom, seems recent (or upcoming?) and specific to OpenJDK.


It is specific to any JVM vendor implementing Java 21 (released 2023) and later. Java 24 is around the corner.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: