4 ms·
Stackful coroutines are just traditional threads.
by mitxela 2mo ago
Stackful coroutines are just traditional threads.
- jandrewrogers 2mo agoStackful 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.