logoalt Hacker News

lll-o-llltoday at 3:40 AM1 replyview on HN

They are different things perhaps? Fibers imply strict cooperative behaviour; I have to explicitly “yield” to give the other fibers a go, green threads are just runtime managed threads?


Replies

varjagtoday at 11:35 AM

Green threads are cooperative threads. Preemption requires ability to handle hardware interrupts, which are typically handled by the OS.

show 1 reply