Presentation is loading. Please wait.

Presentation is loading. Please wait.

(a) Parameter passing in a local procedure call: the stack before the call (b) The stack while the called procedure is active. count =

Similar presentations


Presentation on theme: "(a) Parameter passing in a local procedure call: the stack before the call (b) The stack while the called procedure is active. count ="— Presentation transcript:

1

2

3

4

5

6

7

8

9

10 (a) Parameter passing in a local procedure call: the stack before the call (b) The stack while the called procedure is active. count = read(fd, buf, nbytes)

11

12

13

14 Principle of RPC between a client and server program.

15

16

17

18

19

20 Each machine often has its own representation for numbers, characters, and other data items. Some machines, such as the Intel Pentium, number their bytes from right to left, whereas others, such as the Sun SPARC, number them the other way. The Intel format is called little endian and the SPARC format is called big endian,

21 a)Original message on the Pentium (little-endian) b)The message after receipt on the SPARC (big-endian) c)The message after being inverted (integer 5, string: “LLIJ”) Note: the little numbers in boxes indicate the address of each byte

22

23

24 Analogous to spawning a thread Caller must eventually wait for result Analogous to join The interconnection between client and server in a traditional RPC

25 Analogous to spawning a thread Caller must eventually wait for result Analogous to join Or be interrupted (software interrupt)

26

27

28 The steps in writing a client and a server in DCE RPC DCE: Distributed Computing Environment

29

30

31


Download ppt "(a) Parameter passing in a local procedure call: the stack before the call (b) The stack while the called procedure is active. count ="

Similar presentations


Ads by Google