failures without knowing whether the remote procedure wasactually invoked. Idempotent procedures (those that have noadditional effects if called more than once) are easily handled,but enough difficulties remain that code to call remoteprocedures is often confined to carefully written low-levelsubsystems.
Sequence of events during a RPC
The client calls the Client stub. The call is a local procedurecall, with parameters pushed on to the stack in the normalway.
The client stub packs the parameters into a message andmakes a system call to send the message. Packing theparameters is called marshalling.
The kernel sends the message from the client machine tothe server machine.
The kernel passes the incoming packets to the server stub.
Finally, the server stub calls the server procedure. The replytraces the same steps in the reverse direction.
3. Discuss the following with respect to Distributed Shared Memory:a. Memory Coherence (Consistency) Modelsb. Memory Consistency modelsc. Implementing Sequential Consistencyd. Centralized
Server AlgorithmANS:-4. Explain the following with respect to Resource Management in Distributed Systems:a. Task assignment Approachb. Load
Balancing Approachc. Load
A) Task assignment Approach
Each process is viewed as a collection of tasks. These tasks arescheduled to suitable processor to improve performance. Thisis not a widely used approach because:
It requires characteristics of all the processes to be known inadvance.