3 ms·
> I don't think you understand what green threads are. Green threads are simulated threads that run on a single core. I guess this is just semantics, but it s
by pgwhalen 3y ago
> I don't think you understand what green threads are. Green threads are simulated threads that run on a single core.
I guess this is just semantics, but it seems to be that this is an overly narrow and stale definition of green threads. The wikipedia article is not even internally consistent in its definition of green threads necessarily being scheduled only onto a single core (it includes goroutines as an example). The only reference to such a definition cites two sources from the very early 2000's.
I think it's safe to say that in 2023 "green threads" simply refers to user space threads rather than kernel threads, and that may include threads scheduled onto multiple cores.