News for hackers. Stuff that matters.
Re:Green Threads Explained by dragonwriter on Monday May 29, 2017 @02:05PM (#14440470)
> Are there actual examples of green threads that are not cooperative?

From the "client" side, there are many that are preemptive in that user code does not explicitly yield (Ruby threads pre-1.9, Erlang processes, etc.)

The runtime implementation is, by definition, cooperative scheduling on top of one (1:N) or many (M:N) native threads.

Re:Green Threads Explained by dllthomas on Tuesday May 30, 2017 @12:14AM (#14442970)
> by definition

Is it? It seems like one could theoretically implement thread switch on signal, and I'd probably still call that "green threads".