Open In App

Distributed System – Parameter Passing Semantics in RPC

A Distributed System is a Network of Machines that can exchange information with each other through Message-passing. It can be very useful as it helps in resource sharing. In this article, we will go through the various Parameter Passing Semantics in RPC in distributed Systems in detail.

Parameter Passing Semantics in RPC:

The parameter passing is the only way to share information between clients and servers in the Remote Procedure Call (RPC). The following are the various semantics that is used in RPC for passing parameters in distributed applications:



1. Call-by-Value: The client stub copies and packages the value from the client into a message so that it can be sent to the server through a network.

2. Call-by-Reference: Call-by-Reference simply means that pointers to the parameters are transferred from the client to the server. In some RPC techniques, parameters can be passed by reference. Employed in closed systems in which multiple processes share a single address.



Issues:

Article Tags :