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

For me, it's the difference between code structure and resource usage.

Green threads are for a cleaner code structure. async/await comes quite close, but requires function coloring, creating high coupling. The threads have to have low overhead, so that I don't have to think about whether I should create a new one or not.

Kernel threads are for parallelism and scaling across cores.



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

Search: