Re:Why Continuations Are Coming to Java
by marktangotango on Tuesday July 02, 2019 @10:15AM
(#20335339)
Seems like your saying application threads are “green threads”, when the jvm has used system threads one to one for a long time now. So for the jvm at least there’s no difference between a jvm thread an an OS thread. Some jvm impls may still use green threads, but the major ones haven’t for many years. Apologies if I’ve misunderstood.
Application threads are a part of the application runtime environment. Thread scheduling is little more than a function call and doesn't involve a syscall invocation, and can be hooked into runtime environment trigger mechanisms.
Kernels have to be one size fits all, application threads can be tuned more precisely, with greater visibility over the application's state.