3 ms·
I personally like the name fiber better than green threads. But everywhere I’ve worked in user space cooperative threads, it’s always been green threads.
by matthewfcarlson 7mo ago
I personally like the name fiber better than green threads. But everywhere I’ve worked in user space cooperative threads, it’s always been green threads.
- lll-o-lll 7mo agoThey 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?
- varjag 7mo agoGreen threads are cooperative threads. Preemption requires ability to handle hardware interrupts, which are typically handled by the OS.
- patrec 7mo agoWhat do you mean by this?
- reverius42 7mo agoEverything purely in userspace is by definition cooperative, because to be non-cooperative, you must dip down below userspace.