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

Stackful coroutines are just traditional threads.


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.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: