





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
RMI in distributed system,working of rmi, rmi steps,
Typology: Lecture notes
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















(^) Simple call syntax and similarity to local procedure calls. (^) Its ease of use, efficiency and generality. (^) It can be used as an IPC mechanism between (^) processes on different machines and (^) also between different processes on the same machine.
(^) The RPC enables a call to be made to a procedure that does not reside in the address space of the calling process. (^) Since the caller and the callee processes have disjoint address space, the remote procedure has no access to data and variables of the callers environment. (^) RPC facility uses a message-passing scheme for information exchange between the caller and the callee processes. (^) On arrival of request message, the server process (^) extracts the procedure’s parameters, (^) computes the result, (^) sends a reply message, and (^) then awaits the next call message.
(^) Difference between remote procedure calls and local procedure calls:
(^) Stubs (^) Provide a normal / local procedure call abstraction by concealing the underlying RPC mechanism. (^) A separate stub procedure is associated with both the client and server processes. (^) To hide the underlying communication network, RPC
on both the sides.
(^) Retransmission, (^) Acknowledgement, (^) Routing and (^) Encryption.
(^) On receipt of a call request message from the local RPCRuntime, it unpacks it and makes a perfectly normal call to invoke the appropriate procedure in the server. (^) On receipt of the result of procedure execution from the server, it unpacks the result into a message and then asks the local RPCRuntime to send it to the client stub.
To summarize, a remote procedure call occurs in the following steps: (^) 1. The client procedure calls the client stub in the normal way. (^) 2. The client stub builds a message and calls the local operating system. (^) 3. The client's as sends the message to the remote as. (^) 4. The remote as gives the message to the server stub. (^) 5. The server stub unpacks the parameters and calls the server.