Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Dacuba, John Angelo R.

Bsit 303

1. There are 8MB of free memory blocks that I could use to add a 10MB process to the RAM. The
2MB swapped out process will be added to 8MB since I added 10MB and there is 8MB of free
memory available the process I add will also be a running process.
2. Given that the partitioned X was 2 MB in size, the size of the free block right before to X's
partition would have been 7 MB. Thus, before X partitioned IT, 5 MB plus the partitioned X,
which had a size of 2 MB, equaled 7 MB.
3. I would recommend allocating virtual memory in this arrangement to act as backup memory in
the event that RAM becomes limited. Using virtual memory in this configuration can enhance
system performance, multitasking, and the utilization of big programs.
4. Since we have an 8MB free memory block where the new 7MB process will be located, it is
feasible to add another 7MB using the first-fit placement strategy without swapping. The first
free partition or hole big enough to fit the first-fit placement algorithm's process is assigned.
Once it finds the first free partition, it finishes and lets us add further processes.
5. Best Fit - When the request process and the free memory allocation match, a new 3 MB
allocation process is added to the 3 MB free memory allocation block.
First Fit - The 4MB free memory block is the first available free memory allocation; the 3MB new
request process will be allocated to this memory block. In order to accommodate the process,
the first-fit method assigns the first free division that becomes available. When it locates the
first valid free partition, it ends.

Part II.

1. Linux Virtual Memory - The memory is managed by the Linux memory management subsystem.
inside the framework. It includes the use of virtual memory and supply partitioning. It also
covers memory allocation for kernel internal structures as well as user space programs.
Together with other Functions, the Linux memory management subsystem consists of files that
map farther into the address space of the processes.
Windows Virtual Memory - a technique used by computers to control storage capacity so that
systems operate swiftly and effectively. Operating systems may move data between various
forms of storage, including hard drives or solid-state disk storage and random access memory
(RAM), sometimes referred to as main memory, by using this mechanism.
2. A. Demand paging is a feature of Linux that prevents pages from being moved from disk to RAM
until they are really needed.
B. Windows uses Cluster demand Paging where the pages are bought only when they are
needed but simultaneously. Linux uses Demand paging where the pages will not be swapped
from disk to RAM until they are needed.
C. Applications that are operating from virtual memory perform less quickly. A computer must
map data between virtual and real memory, which slows it down even more and necessitates
additional hardware support for address translations.
D. Certainly, if I were creating a memory management system, I would include a virtual memory.
This is due to its many benefits regarding the operating system. As a result, it speeds up the
execution of several apps and can handle higher processing capacity.

You might also like