Re:Java 21 Released
by zerr on Tuesday September 19, 2023 @11:10AM
(#37571032)
I remember they were talking about Green Threads 20 years ago. Is it something new?
[ Parent
| on HN ]
Yes, while green and red threads were an implementation detail not exposed to Java programmers, now both thread models are exposed (Threads and Virtual Threads).
Additionally since virtual threads are exposed across the whole runtime and standard library, not only they are built on top of native threads (red), the developers have control over their scheduling.