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

> Also, why Pre-emptive Scheduling is bad?

Preemptive scheduling is good.

The article's complaint against Go's scheduling is that it's not fully preemptive. For each Erlang Process (green thread/lwp) the VM keeps a counter for the number of allowed expression reductions, and any process can be preempted after any expression reduction. Preemption in Erlang isn't blocked by loops without function calls.

In contrast, Go preemption is thwarted by loops without function calls.



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

Search: