3 ms·
Would this mean having something in Java like the M:N thread model we see in Go, Erlang, and such?
by s_kilk 9y ago
Would this mean having something in Java like the M:N thread model we see in Go, Erlang, and such?
- peoplewindow 9y agoYes, it would.
- dboreham 9y agoAgain. Since it has this long ago, and long ago removed[1] when folks realized that OS-native threads are the way to go if you have them. [1] https://en.wikipedia.org/wiki/Green_threads#Green_threads_in_the_Java_virtual_machine https://en.wikipedia.org/wiki/Green_threads#Green_threads_in...
- wtetzner 9y ago> 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.
- dullgiulio 9y agoAbsolutely, especially if the lightweight threads are implemented on top of OS threads, which is not what was done with Green Threads.
- dragonwriter 9y agoOld 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.