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

This question is about memory management on Variable Size Partitions. After requ

ID: 3856353 • 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?

Start address

Size

Process

0

2K

P1

2K

6K

P2

8K

3K

P3

11K

2K

FREE

Explanation / Answer

With the current allocation, just the last partition is free, which is of 2K.

1) As P4 requires 4K memory and only 2K is free, the request can't be fulfilled.

2) If P2 terminates, a 6K block starting from 2K is available. As the new Process P4 only require 4K memory, its need can easily be satisfied by allocating the block starting from 2K address.

3) If only P1 terminates, We have got 2 free partitions each of size 2K, starting from 0 and 11K. But the coming process P4 require the memory as a whole of 4K size, which is not available. Hence the request can not be fulfilled.

4) If P3 terminates, it vacates memory partition of 3K starting from 8K, and we already have one vacant slot of 2K starting from 11K. So as both of these free partition are in continuation, they create a single free block of size 5K starting from address 8K. The new process P4 require only 4K memory, Hence its.need can easily be satisfied.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote