Part 11
Part 11
1. If you are to add a new 10MB process in the memory, where could it possibly be added and
why?
• I believe that the 8MB block plus the amount of memory on its right side will be enough
to accommodate the new 10MB process since I believe that the process on the right
side of the 8MB block has already been swapped out of the RAM.
2. What could be the size of the free block just before it was partitioned by X? Rationalize
your answer.
• In the figure above, it says that the partition with the x mark has a size of 2MB, and that
there is a free block in its left side that is in 1MB size and %Mb on its right side, thus
2MB + 1MB + 5MB is equal to 8MB. Therefore, I believe the size of the free block to be
8MB.
3. Would you suggest the provisioning of virtual memory in this configuration? Why or why
not?
• Yes, because if the smaller processes continue to come in the initial variable partition
scheme, the larger partition will be divided into smaller partitions. The following
strategies are employed to avoid the issue of external fragmentation: compaction,
which involves relocating all processes to the top or bottom of the stack to make the
free memory available in a single continuous location.
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: