[erlang-questions] changing the internal message transfer protocol

Kostis Sagonas kostis@REDACTED
Fri Sep 25 18:11:55 CEST 2009


Guilherme Silveira wrote:
> Thanks Jachym,
> 
>>> Pid = spawn(NodeName, M, F, A).
>> See lib/kernel/src/erlang.erl:spawn/4.
> spawn invokes gen_server when NodeName =/= node(), which invokes
> gen:call, which invokes erlang:send.
> 
> But I was unable to find who exports erlang:send... the erlang module
> (erlang.erl) only exports dsend, which connnects+invokes send.
> 
> Any suggestions where to find the send implementation?

The send operation is a built-in function (BIF) and BEAM instruction 
implemented in C.

Kostis


More information about the erlang-questions mailing list