[erlang-questions] [Q] Why is Erlang VM better than traditional OS like Linux?

Lee Sylvester lee.sylvester@REDACTED
Thu Aug 7 11:15:39 CEST 2014

On 7 Aug 2014, at 10:11, Ladislav Lenart <lenartlad@REDACTED> wrote:

> Both Linux and Erlang manage processes and Erlang is (much?) better at it.
> Again, I just wanted to know why...

No.  The point to understand here is that an OS process and an Erlang process is not the same.  An OS process is a chunk of memory reserved by the OS for running an application.  It has overhead, as it provides communication and switching for playing nice with other OS apps.  It is a beast in terms of resources.

An Erlang process is simply a stack in the Erlang VM.  It is lightweight because the Erlang VM does the heavy lifting, while the Erlang process does very little (outside of your own code).

They are both called processes, and they both act like processes, but that’s where the similarity ends.  They are otherwise completely different beasts.  For example, the Erlang VM, which has its own processes, will sit in an OS process.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140807/546b5ce2/attachment.htm>

More information about the erlang-questions mailing list