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

The rule of thumb also keeps you from doing a lot of task switching. It isn't free enqueue and dequeue tasks. It is better if you have a million things to do to have a smaller set of tasks. Especially if the runtime for those tasks are somewhat uniform.


For sure. Context switching tasks is certainly a lot cheaper than context switching threads, but it isn't free.




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

Search: