4 ms·
I have been out of Java programming for a while. Why/when were green threads deprecated?
by kuwze 8y ago
I have been out of Java programming for a while. Why/when were green threads deprecated?
- teilo 8y agoThey were considered a workaround for architectures that didn't have native multi-threading. I don't remember when they were dropped, but it was well before the Oracle acquisition.
- Someone 8y agoThe JVM ran all its green threads on a single CPU, even if multiple CPUs were present. When multi core systems became more common, Sun faced the choice of overhauling the green threads implementation or going to us system threads. I don’t know why they made the choice, but it likely was a combination of time pressure (writing and tuning a good m:n green threads implementation is hard) and doubts about the usefulness of green threads on multicore systems.