[erlang-questions] Sending messages to non-existing process

Frank Muller frank.muller.erl@REDACTED
Fri Jan 25 16:49:43 CET 2019

Hey guys

Is there any side effect of sending an infinite stream of messages to a
non-existing process registered by name?

1> Term = ….
2> register(foo, self()).
3> 1 / 0.
4> [ foo ! Term || _ <- lists:eq(1. 10000000000000) ].

I’m curious about how the VM handles this scenario internally:

1. messages are simply discarded? And if this the case, will this hurt the
VM’s performances?
2. something else???

Finally, what will happen if during the sending, a process get registered
with name 'foo' ?

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190125/a41b75e0/attachment.htm>

More information about the erlang-questions mailing list