3 ms·
> How long until OS vendors introduce abstractions to make this easier? Why aren't there OS-native green threads, or at the very least user-space scheduling aff
by RcouF1uZ4gsC 4y ago
> How long until OS vendors introduce abstractions to make this easier? Why aren't there OS-native green threads, or at the very least user-space scheduling affordances for runtimes that want to implement them without overhead in calling blocking code?
Windows had has Fibers[0] for decades (IIRC since 1996 with Windows NT 4.0)
0. https://learn.microsoft.com/en-us/windows/win32/procthread/fibers https://learn.microsoft.com/en-us/windows/win32/procthread/f...
- gpderetta 4y agoFibers are just one part of it. You also need a scheduler and a way to hook into existing blocking APIs.