Previous | Next --- Slide 29 of 47
Back to Lecture Thumbnails
tnebel

A primary example of this would be various distributed systems. These can use remote procedure calls (RPC) or other message passing systems for communication. The basic idea of a RPC is to keep the same semantics as a normal procedure call, but behind the scenes run the procedure on some other machine and return the result to the original machine. This allows for a nice interface when programming a distributed system.

chaominy

Another example of message passing model is the channel mechanism in Golang. The key idea is sharing memory by communication. Threads communicate with each other through message passing via channel. Only one thread has access to the shared value at any given time.

nslobody

All inter-process communication in Erlang is done via message passing, if I'm not mistaken.