Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Fig. 4 shows the current memory usage status. Assume that pages are mapped to th

ID: 3737136 • Letter: F

Question

Fig. 4 shows the current memory usage status. Assume that pages are mapped to the physical memory. Answer the following questions: (Bonus problem) 6. f31 f30 129 128 127 f26 125 124 123 P6-page 3 P5-page 0 P6- page 4 P5-page 3 (1) How many user processes are in memory? P6 (2) Assume page size is 4-KB. What is the size (in KB) of each process? 121 120 f19 f18 f17 f16 f15 f14 f13 f12 f11 f10 P5- (3) How much free memory is available (in KB)? P4- P4- (4) How many percent does the kernel take? P4-page1 P2- page 1 (5) What is the percentage of memory usage? P3- P2 f8 f7 f6 f5 (6) How many percent of memory is available? Operatin syste f2 fo Fig. 4

Explanation / Answer

Since each page is directly mapped to physical memory the following are the initial declarations
a) Each frame points to a 4kb of memory space(page), therefore total memory is 128 kb.
b) There are total of five processes running.
c) There are 10 frames which are not accessing the physical memory, i.e there is 40 kb of free memory.
d) Four frames are taken up by kernel, 16 kb is used by kernel.

1. How many user processes are runnning in memory?
Ans. There are five user processes running in memory(P2,P3,P4,P5,P6)

2.Assume page size is 4KB. What is the size of each process?
Ans. P2 - 8KB
     P3 - 16KB
     P4 - 12KB
     P5 - 16KB
     P6 - 20KB

3. How much free memory is avaiable?
Ans. Total Memory - (Kernel memory + User Process Memory)
     128 - (16 + 72)
     128 - 88
     40 KB

4. How much percent does the Kernel take?
Ans. 16/128
     12.5 %

5. What is the percentage of memory usage?
Ans. (128 - 40)/128
     88/128
     68.75

6. How many percent of memory is avaiable?
Ans. 40/128
     31.25
    

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote