Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Stackful coroutines are just traditional threads.
 help



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.

Threads were traditionally cooperatively scheduled, too. Expensive context switch is an artifact of implementation.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: