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

binding user level threads to hardware cores without preemption is completely equivalent to the thread-per-core + coroutines, except that user level threads allow deep stacks (with all the benefits and issues that it implies).

In fact a well designed generic executor can be completely oblivious to whether it is scheduling plain closures, async functions or fibers. See for example boost.asio.



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

Search: