Download presentation
Presentation is loading. Please wait.
Published byToby Deveraux Modified over 9 years ago
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
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
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
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
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
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.