3 ms·
Erlang scheduler time share each processes. So if you have an infinite forloop, it while stop for several ms for other processes to run. Preemptive scheduler,
by digitalzombie 13y ago
Erlang scheduler time share each processes. So if you have an infinite forloop, it while stop for several ms for other processes to run.
Preemptive scheduler, I doubt Go have this, then again Go doesn't have a VM/OS system.
- kapilvt 13y agogo 1.2 has preemptive scheduling http://golang.org/doc/go1.2#preemption http://golang.org/doc/go1.2#preemption
- jerf 13y agoIn fairness, it's worth pointing out that Go 1.2 has partial preemption. Preemption is still checked only on function entry. However, unlike something like Node, this is not built in the language semantics, it's a characteristic of the runtime, and I imagine over time this will be fixed.
- voidlogic 13y ago>Preemption is still checked only on function entry. And I believe also heap allocation... the two cases together make what is still "partial preemption" pretty damn effective.