Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Just as processes share the CPU, they also share physical memory. This section is about mechanisms for doing that sharing. EXAMPLE OF MEMORY USAGE Calculation.

Similar presentations


Presentation on theme: " Just as processes share the CPU, they also share physical memory. This section is about mechanisms for doing that sharing. EXAMPLE OF MEMORY USAGE Calculation."— Presentation transcript:

1  Just as processes share the CPU, they also share physical memory. This section is about mechanisms for doing that sharing. EXAMPLE OF MEMORY USAGE Calculation of aneffective address ° Fetch from instruction ° Use index offset

2

3 Relocatable Binding o Compiler o linker o loader C=a+b Reserve Memory Area

4 Object Module Binary Prog.. Source Program Java source program(.java) Class file (.class) Binary file (0,1) Memory allocation, swaping, paging process

5

6

7

8 Process Free space 6 K.B. Process Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Process Memory space

9 Process Free space 6 K.B. Process Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Process Memory space

10 Process Free space 6 K.B. Process Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Process 6 K.B. Process

11

12 Process Free space 6 K.B. Process Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Process Memory space

13 Process Free space 6 K.B. Process Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Process Memory space

14 Process Free space 6 K.B. Process Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Free space 3 K.B. Process 6 K.B. Process 1 K.B. free 1 K.B. free 2 Mb Process

15

16 Process Free space 24 K.B. Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Process Memory space

17 Process Free space 24 K.B. Free space 24 K.B. Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Process Memory space

18 Process Free space 12 K.B. Free space 12 K.B. Free space 3 K.B. Free space 3 K.B. Process 6 K.B. Process Free space 24 K.B. Free space 18 K.B. 9 K.B. Free 3 K.B. Process

19

20 Process Memory space Process

21 Frame no Page no 0 1 2 3

22 pd f P F P d 1 1 3 3 d=offset Page noFrame no 05 16 21 32

23 Page no 0 1 2 3 P=1 Logical & Physical = offset d=3

24 pd f P F P d 1 1 3 3 d=offset Page noFrame no 05 16 21 32


Download ppt " Just as processes share the CPU, they also share physical memory. This section is about mechanisms for doing that sharing. EXAMPLE OF MEMORY USAGE Calculation."

Similar presentations


Ads by Google