Professional Documents
Culture Documents
Problem Set:
11k 5k 2k 13k 8k 7k 3k 9k
10 K 3K 6K 4K 12K 15K
Next Fit E8 G3 B5 C2 F7 H9 AD
In What
Internal External %Memory
Partition will C
Fragmentation Fragmentation Utilized
be allocated?
1 MEMORY MANAGEMENT
Name: Ana Lisa M. Mesina MIT 603-Operating System
B 3 5 8 6K
C 4 8 4 6K
D 7 7 5 6K
Assume:
2 MEMORY MANAGEMENT
Name: Ana Lisa M. Mesina MIT 603-Operating System
Assume:
Arrival Memory Burst
Job
Time Size Time
CPU Scheduling Algorithm :
RR with q = 2
A 0 9 6
Memory Allocation Strategy :
First Fit
B 3 5 8
Memory Management Strategy :
Variable Partition
C 4 8 4
User Memory starts from:
25 to 45.
0 A9 11 K 0 100
3 A9 B5 6K 0 100
8 C8 B5 7K 0 100
10 C8 B5 D7 0 100
12 A9 B5 6K 0 100
14 C8 B5 D7 0 100
4. On a system with 1024KB memory using the buddy system, draw a diagram showing the
allocation of memory after each of the following events. Specify if fragmentation occurs.
3 MEMORY MANAGEMENT
Name: Ana Lisa M. Mesina MIT 603-Operating System
1024 KB IF EF
Process A,
1. request 40K A = 256 KB 256 KB 512 K 0 0
Process B,
2. request A = 256 KB 256 KB B = 256 KB 256 KB 0 0
140K
Process C, C=
3. request 50K A = 256 KB 128 KB 128 KB B = 256 KB 256 KB 0
0
C=
Process D,
A = 256 KB 128 KB D= 64 B =256 KB 256 KB
4. request 50K 0 0
64 KB
KB
Process E, C= D= E=
5. request 50K A = 256 KB 128KB 64 64 B = 256 KB 128 KB 128 KB 0 0
KB KB
Process D, A = 256 KB C=128 128 KB B = 256 KB E=
6. 0 0
exit KB 128 KB 128KB
Process C,
A = 256 KB 256 KB B = 256 KB E=
7. exit 0 0
128 KB 128 KB
Process E,
A = 256 KB 256 KB B = 256 KB 256 KB
8. exit 0 0
Process A,
9. exit 512 KB B = 256 KB 256 KB 0 0
Process
10. F,request F= 128 128KB 256 KB B = 256 KB 256 KB 0 0
115K KB
Process G,
F=128 G = 256 KB B = 256 KB 256 KB
11. request 0 0
KB 128 KB
140K
Process F,
12. exit 256 = KB G = 256 KB B = 256 KB 256 KB 0 0
Process G,
13. exit 512 KB B = 256 KB 256 KB 0 0
Process B,
14. exit 512 KB 512 KB 0 0
4 MEMORY MANAGEMENT