Re:Project Loom: Fibers and Continuations for the Java Virtu...
by dragonwriter on Thursday November 02, 2017 @10:04AM
(#15610453)
Old Java threads were 1:N, not M:N, and were instead of rather than in addition to support for 1:1 native threads. Having the choice between 1:1 and M:N both available on the platform is better than being locked into 1:1 or 1:N (or even M:N.)
What is offered here is strictly better than the current or previous state.
Re:Project Loom: Fibers and Continuations for the Java Virtu...
by wtetzner on Wednesday November 01, 2017 @02:28PM
(#15604110)
> when folks realized that OS-native threads are the way to go if you have them.
Well, it depends on what you're trying to do. Having the option of using either is preferable.
Re:Project Loom: Fibers and Continuations for the Java Virtu...
by dullgiulio on Wednesday November 01, 2017 @05:20PM
(#15605573)
Absolutely, especially if the lightweight threads are implemented on top of OS threads, which is not what was done with Green Threads.
[1] https://en.wikipedia.org/wiki/Green_threads#Green_threads_in...