[erlang-questions] What's the difference between starting erlang vms (pure erl shell) and starting erlang nodes on the same machine?

Magnus Klaar <>
Tue Nov 15 06:42:27 CET 2011


Hi!

Yes, giving nodes a name is to enable message passing between processes on
different nodes. The name is the unique identifier for remote nodes, and
"local" nodes on the same OS. If you don't have one it's like it doesn't
exist to other nodes.

The two erlang nodes share the resources available to the operating system
you're running them on, by default each erlang node will start a scheduler
thread for each cpu core available which means they will get an equal share
of the cpu resources unless you decide to change the niceness. (man 1 nice
# just in case)

On Tue, Nov 15, 2011 at 6:18 AM, Barco You <> wrote:

> Hi Magnus,
>
> Thank you!
>
> So, that's to say if we don't give the erlang shell a node name, they
> can't send each other messages, right?
>
> And if I understand you correctly, the two erlang shells have their own
> schedulers and run-queues independently, and the two (OS) process could run
> on the same core or on different cores simultaneously. Is it right?
>
>
> Regards,
> Barco
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111115/8e6e4c7f/attachment.html>


More information about the erlang-questions mailing list