[Gllug] Reia
- Tethys
tethys at gmail.com
Fri Feb 20 17:40:58 UTC 2009
On Fri, Feb 20, 2009 at 4:44 PM, John Hearns <hearnsj at googlemail.com> wrote:
> Bear with me when I ask what the mecahnism the Erlang VM uses to
> distribute the load across multicores.
The Erlang VM has it's own lightweight "processes" (distinct from OS
level processes). A scheduler within the VM determines which process
gets to run next. The current VM runs one scheduler per core. The
schedulers decide which processes are waiting for CPU time partly
based on message queue length IIRC. Do they all pull from a central
pool of processes waiting to run? Does each scheduler have a pool of
processes for which it's responsible? Can a process move between
schedulers (and hence cores)? I'm afraid I don't know....
Tet
--
The greatest shortcoming of the human race is our inability to
understand the exponential function -- Albert Bartlett
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list