Erlang message loops

Posted by Roger Alsing on Stack Overflow See other posts from Stack Overflow or by Roger Alsing
Published on 2010-05-31T11:59:49Z Indexed on 2010/05/31 12:03 UTC
Read the original article Hit count: 242

How does message loops in erlang work, are they sync when it comes to processing messages?

As far as I understand, the loop will start by "receive"ing a message and then perform something and hit another iteration of the loop.

So that has to be sync? right?

If multiple clients send messages to the same message loop, then all those messages are queued and performed one after another, or?

To process multiple messages in parallell, you would have to spawn multiple message loops in different processes, right?

Or did I misunderstand all of it?

© Stack Overflow or respective owner

Related posts about erlang

Related posts about parallel-processing