Part 2
Part 2
Part 2
1. If you are to add a new 10MB process in the memory, where could it possibly be added and
why?
• I think the new 10MB process will be allocated at the bar of 8MB because I think the
process on the right side of 8MB block is already swapped out from the RAM so the 8MB
plus the size of the memory on its right side is enough to for the new 10MB process.
2. What could be the size of the free block just before it was partitioned by X? Rationalize
your answer.
• I think the size of the free block is 8MB because in the given above the diagram it says
that the partition with x mark has a size of 2MB, and there a free block in its left side
which is in 1MB size and %Mb on its right side, so 2MB + 1MB + 5MB is equal to 8MB.
3. Would you suggest the provisioning of virtual memory in this configuration? Why or why
not?
• Yes, because in the variable partition scheme initially, If the smaller process keeps on
coming, then the larger partition will be made into smaller partitions. To avoid the
problem of external fragmentation the following techniques are used compaction in
which moving all the processes towards the top or towards the bottom to make the free
available memory in a single continuous place.
4. Is it possible to add a new 7MB process using the first-fit placement algorithm without
swapping out any process? Why or why not?
• Yes, the implement of the first-fit placement algorithm is scanning the memory from the
beginning then chooses the first available block that is large enough for the process, in
the figure above there’s an 8MB available block that is large enough to handle the 7MB
of process.
5. A new process is requesting a 3MB allocation. Illustrate the possible memory configuration
using a horizontal segmented memory strip (like the diagram above), where a partition will
be created for the new process under the following placement algorithms: best-fit and first-
fit. Label your illustration clearly.
Part 2: