2 ms·
Stackful coroutines are cooperatively scheduled, unlike traditional threads, and context switch much more inexpensively. It is the reason people write stackful
by jandrewrogers 2mo 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 2mo agoThreads were traditionally cooperatively scheduled, too. Expensive context switch is an artifact of implementation.