As Erlang threads do not share state, it would make sense for Erlang/OTP to automatically take advantage of any extra cores and processors a machine might have. Is this true?
Asked
Active
Viewed 197 times
1
-
3I believe [this answer](http://stackoverflow.com/a/605631/113848) is still accurate. – legoscia Feb 11 '13 at 15:24
1 Answers
2
Yes the standard Erlang VM will distribute processes across all the cores in a system. In general the number of running processes will be much greater then the number of cores so this works well. In addition the VM is optimised to hold up well under heavy load so you can really push a lot of work across it.
The Erlang on Xen VM will only use a single VM but assumes that you will distribute across cores by use of the Xen Hypervisor (this is a new experimental VM)

Zachary K
- 3,205
- 1
- 29
- 36