4 ms·
Stackful coroutines are cooperatively scheduled, unlike traditional threads, and context switch much more inexpensively. It is the reason people write stackful
by jandrewrogers 6d ago
Stackful coroutines are cooperatively scheduled, unlike traditional threads, and context switch much more inexpensively. It is the reason people write stackful coroutine libraries instead of just using threads.
- mitxela 5d agoThreads were traditionally cooperatively scheduled, too. Expensive context switch is an artifact of implementation.