3 ms·
Preemption. Erlang VM counts each instruction per process and uses it's own scheduler to switch processes, all other implementations of lightweight processes ca
by mapcars 11y ago
Preemption. Erlang VM counts each instruction per process and uses it's own scheduler to switch processes, all other implementations of lightweight processes can't do this without implementing their own erlang.
- MichaelGG 11y agoSo every OS is it's own Erlang?
- mapcars 11y agoYes, but "modern" OS'es have heavy processes, in other words they save registers, stack pointers, other process related things and restore them on every process switch. I'm not sure what makes real difference to Erlang's processes here, I hope someone can explain this with more details.