[erlang-questions] What's the difference between spawn(Node, Module, Fun, Args) and rpc:call(Node, Module, Fun, Args)?

Attila Rajmund Nohl attila.r.nohl@REDACTED
Fri Apr 22 12:15:14 CEST 2011


2011/4/22, Barco You <barcojie@REDACTED>:
> I'm baffled to distinguish these two usages of RPC and don't know when
> should use which. I appreciate your explanations!

erlang:spawn will start a new process on the remote node executing
Module:Fun(Args).

rpc:call will start a new process on the remote node executing
Module:Fun(Args), will wait until that process finishes and will
return the result from that function.



More information about the erlang-questions mailing list