You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assign the PID of the current process to the variable S
italy@pigeon> S = self().
Define an anonymous function which displays wow on the node where it gets executed and send a message to a process (which could be remote). The message contain the name of the node where the function is run.
italy@pigeon> F = fun() -> erlang:display(wow), S ! node() end.
Spawn a remote process which will execute the anonymous function
italy@pigeon> spawn('sweden@pigeon', F).
Verify that the message sent above has been received by the remote process