Professional Documents
Culture Documents
Cooperating process can affect (or be affected by) the execution of another process
In Indirect Communication between processes: Messages are directed and received from
mailboxes
In buffering: Zero capacity (0 messages) means Sender must wait for receiver (rendezvous).
In buffering: Bounded capacity – finite length of n messages- means Sender must wait if link is
full
Sockets use client/server architecture: Server waits for incoming client requests by listening to a
specified port; Once request received, server accepts a connection from client socket to
complete connection.
A socket is concatenation of IP address and port. The socket 161.25.19.8:1625 refers to port
1625 on host 161.25.19.8.
Socket are common and efficient, but low level between distributed processes. Sockets allow
unstructured stream of bytes. Remote procedure call (RPC) and Remote method invocation
(RMI) are Higher-level method of communication.
Remote procedure call (RPC) abstracts procedure calls between processes on networked
systems.
Stub-client: client-side proxy for the actual procedure on the server. The client-side stub locates
the server and marshalls the parameters. The server-side stub receives this message, unpacks
the marshaled parameters, and performs (calls) the procedure on the server.
Remote Method Invocation (RMI) is a Java mechanism similar to RPCs. RMI allows a Java
program on one machine to invoke a method on a remote object.