What's the difference between call by reference and copy/restore

前端 未结 2 1767
暖寄归人
暖寄归人 2020-12-14 10:46

What\'s the difference in the outcome between call by reference and copy/restore?

Background: I\'m currently studying distributed systems. Concerning the passing of

2条回答
  •  悲哀的现实
    2020-12-14 11:25

    Call by Copy/Restore is a special case of call-by-reference where the provided reference is unique to the caller. The final result on the referenced values will not be saved until the end of the function.

    This type of calling is useful when a method in RPC called by reference. The actual data is sent to the server side and the final result will send to the client. This will reduce the traffic, since the server will not update the reference each time.

提交回复
热议问题