Memory Management: Practice Exercise
Memory Management: Practice Exercise
Practice Exercise
Memory Management
Objectives:
Questions
1. If you are to add a new 10MB process in the memory, where could it possibly be added and
why?
Yes, Virtual memory in this configuration because in the variable partition scheme
initially, memory will be a single continuous free block. Whenever a request is
received by the process, a record is made in the memory. If the smaller process
continues, the bigger division will be divided into smaller partitions. The following
strategies are used to avoid the problem of external fragmentation. Compaction is the
process of relocating all processes to the top or bottom of the stack to create free
accessible memory in a single continuous location.
2. What could be the size of the free block just before it was partitioned by X? Rationalize your
answer. (5 points)
3. Would you suggest the provisioning of virtual memory in this configuration? Why or why not?
(5 points)
Yes, it supports multitasking, allowing processes and the kernel to operate on their
own private address space without worrying about contention. It supports
oversubscription of the main memory, allowing the operating system to transparently
map virtual memory between the main and the secondary memory, as needed. It is not
a real memory and most operating systems map virtual memory to real memory only
on demand (when the memory is first populated or written).
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, a new 7MB process may be added using the first-fit placement technique
without switching out any existing processes. Because the initial fit allocates the first
05 Practice Exercise 1 *Property of STI
Page 1 of 2
IT2106
adequate process from left to right in a partition. As a result, the 8MB while box is free
to place 7MB.
2. Then, answer the following items based on your research. (4 items x 5 points)
a. Between the operation and management of Linux and Windows virtual memory, which do you
think is less complex and why?
b. Were you able to find similarities between Linux and Windows virtual memory?
o If your answer is yes, explain each similarity.
o If your answer is no, explain the possible reason why there is no similarity.
c. What are the possible drawbacks of not implementing virtual memory?
d. If you are to design a memory management system, would you incorporate virtual memory
into your design? Why or why not?
Note: DO NOT COPY AND PASTE. All students who copy and paste their work from any website or their classmates will automatically receive a failing mark for this assessment task.