This question is about memory management on Variable Size Partitions. After requ
ID: 3856555 • Letter: T
Question
This question is about memory management on Variable Size Partitions. After request for 2K, 6K, and 3K processes, the memory allocation is shown as in the following table:
Start address Size Process
0 2K P1
2K 6K P2
8K 3K P3
11K 2K FREE
Please answer the following questions. (a) If a new process P4 comes, and requests 4K memory, can it be satisfied? Why? (b) If P2 terminates only, can P4's request be satisfied? Why? (c) If P1 terminates only, can P4's request be satisfied? Why? (d) If P3 terminates only, can P4's request be satisfied? Why?
Explanation / Answer
a)
if new process p4 request for 4K memory then it can not be satisfied.
As there is only one block of 2k memory free. So p4 has to wait.
b) If only p2 terminates then there will be an emoty slot of 6K.
Hence p4 can be satisfied as p4 only requests for 4K.
c) If P1 only terminates then total free memory is 4k.
But both are divided into two blocks of 2K.
P4 needs contineous memory of 4K. Which is not there in memory.
Hence p4 can not be satisfied if only p1 terminates.
d) If only p3 terminates then there will be contineous memory of 5K.
Hence p4 can be assined that memory. Hence p4 can be satisfied.
if you have any doubts then you can ask in comment section
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.