> I think stackful coroutines and threads are essentially the same concept.
I think "fibers" is more correct term here: "stackful coroutines and fibers are essentially the same concept".
In Win32, each process consists of threads, and each thread consists of fibers. Each fiber has its own stack. Userspace code can switch fibers with SwitchToFiber() API, kernel never switches fibers (kernel's unit of scheduling is entire thread).
I think "fibers" is more correct term here: "stackful coroutines and fibers are essentially the same concept".
In Win32, each process consists of threads, and each thread consists of fibers. Each fiber has its own stack. Userspace code can switch fibers with SwitchToFiber() API, kernel never switches fibers (kernel's unit of scheduling is entire thread).