0% found this document useful (0 votes)
25 views3 pages

Mjalab

Uploaded by

asayasmarcjoshua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Mjalab

Uploaded by

asayasmarcjoshua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Name: Marc Joshua M.

Asayas

PART 1

Questions 1. If you are to add a new 10MB process in the memory, where could it possibly be added
and
why?
Answer: Tis configuration uses virtual memory since the memory will initially be divided into a single
continuous free black. Every time the process receives a request, a record is created in the memory. It
will be virtual memory because it will consist of a single continuous block. Furthermore, the greater
partition will split up into smaller partitions if the smaller process continues.

2. What could be the size of the free block just before it was partitioned by X? Rationalize your
answer.
Answer: The size of the free block before it was partitioned by X is 7MB. The size of the process
is 2MB and left 5MB out of 7MB. The whole 7MB was deducted by 2MB that is why the
remaining space was 5MB.

3. Would you suggest the provisioning of virtual memory in this configuration? Why or why
not?
Answer: Yes, making use of this configuration on a virtual memory works. We are making use

ofthe dynamic partitioning in this configuration that offers better space management, that is why

making use of this configuration works. This prevents the memory from running out of space

easily.

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?

Answer: The first-fit placement strategy allows the introduction of a new 7MB process without

replacing any already installed processes. Because in a partition that is first sufficient, first-fit

assigns the process from left to right. Therefore, 7MB can be added to the 8MB box.

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.


Best-fit:

4MB 1MB 5MB 8MB 2MB 4MB 3MB

The 3MB processX will be placed here.

First-fit:

1MB 1MB 5MB 8MB 2MB 4MB 3MB

X
3MB

This is the 3MB process.


PART II. 1. Explain the operation and management of the following virtual memory. Search for
relevant
studies and literatures that would support your answer. Properly cite your references.
*Linux Virtual Memory – Virtual memory is supported by Linux. The subsystem of the Linux
memory management is the one that manages the memory inside the system. It holds the
implementation of demand paging and virtual memory. It also holds the memory allocation for
kernel internal structures and user space programs.

*Windows Virtual Memory – Windows has virtual memory and physical memory. The memory
in Windows is managed in pages. The size of memory pages for both physical and virtual
memory are 4KB. The total of transferable memory is 4GB on 32-bit (x86) architectures. It is
equally divided into system space and user space.

2. Then, answer the following items based on your research. a. Between the operation and

management of Linux and Windows virtual memory, which do


you think is less complex and why?
Answer: For me, Linux is better because it makes your computer’s CPU to have less strain or
huge load and does not need as much hard drive space.
b. Where you able to find similarities between Linux and Windows memory?
Answer: Yes, there are similarity and difference between the Linux and Windows. Both
Windows and Linux may not use the RAM in the same way, but the task that they are doing
with it is the same.
c. What are the possible drawbacks of not implementing virtual memory?
Answer: It may lead to complications like not being able to run or load applications. If the
available RAM of your computer is filled up or loaded, the problem could occur.

d. If you are to design a memory management system, would you incorporate virtual memory
into your design? Why or why not?
Answer: Yes, because the virtual memory lets the system to compensate the shortages of the
physical memory. This is very important if you want your system to be efficient and avoid filling
up the memory.

You might also like