Instructions: 1. Explain the operation and management of the following virtual memory. Search for relevant studies and literatures that would supportyour answer. Properly cite your references. Linux Virtual Memory • Windows Virtual Memory

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
Laboratory Exercise
Memory Management
Objectives:
At the end of the exercise, the students should be able to:
• Examine some techniques in memory partitioning; and
• Analyze the underlying concepts and implications of virtual memory.
PartI
Instructions: Read the description of the memory configuration and analyze the given diagram. Then, answer
the following questions.
Memory Configuration: A computer implements a dynamic partitioning technique for memory
management. A number of allocation and swapping-out operations have been caried out while the
computer is up and running. The disgram below shows the computer's current memory
configuration/allocation. The addresses go from left to right. The gray areas represent blocks that are
occupied by running processes, while the white areas indicate free memory blocks. The last process
that was loaded into the memory is marked with a red X in the diagram, and its size is 2MB. On ly one
process was swapped out afterthat.
4MB
1MB
SMB
8MB
2MB
4MB
3MB
X
Questions
1. If you are to add a new 10MB process in the memory, where could it possibly be added sand
why?
2. What could be the size of the free block just before it was partitioned by X? Rationalize your
answer.
3.
Would you suggest the provisioning of virtual memory in this configuration? Why or why not?
4. Isit possible to add a new 7 MB process using the first-fit place ment algorith m without swapping
out any process? Why or why not?
5.
A new process is requesting a 3MB a llocation. Illustrate the possible memory configuration
using a horizontal segmented memory strip (like the disgram above), where a partition will be
created forthe new process underthe follo wing placement algorithms: best-fit and first-fit. Label
your illustration clearly.
Transcribed Image Text:Laboratory Exercise Memory Management Objectives: At the end of the exercise, the students should be able to: • Examine some techniques in memory partitioning; and • Analyze the underlying concepts and implications of virtual memory. PartI Instructions: Read the description of the memory configuration and analyze the given diagram. Then, answer the following questions. Memory Configuration: A computer implements a dynamic partitioning technique for memory management. A number of allocation and swapping-out operations have been caried out while the computer is up and running. The disgram below shows the computer's current memory configuration/allocation. The addresses go from left to right. The gray areas represent blocks that are occupied by running processes, while the white areas indicate free memory blocks. The last process that was loaded into the memory is marked with a red X in the diagram, and its size is 2MB. On ly one process was swapped out afterthat. 4MB 1MB SMB 8MB 2MB 4MB 3MB X Questions 1. If you are to add a new 10MB process in the memory, where could it possibly be added sand why? 2. What could be the size of the free block just before it was partitioned by X? Rationalize your answer. 3. Would you suggest the provisioning of virtual memory in this configuration? Why or why not? 4. Isit possible to add a new 7 MB process using the first-fit place ment algorith m without swapping out any process? Why or why not? 5. A new process is requesting a 3MB a llocation. Illustrate the possible memory configuration using a horizontal segmented memory strip (like the disgram above), where a partition will be created forthe new process underthe follo wing placement algorithms: best-fit and first-fit. Label your illustration clearly.
Part II
Instructions:
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
Windows Virtual Memory
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?
b. Were you able to find similarities between Linux and Windows virtual memory?
o If your answeris 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, wouldyou incorporate virtual memory into
your design? Why or why not?
Transcribed Image Text:Part II Instructions: 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 Windows Virtual Memory 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? b. Were you able to find similarities between Linux and Windows virtual memory? o If your answeris 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, wouldyou incorporate virtual memory into your design? Why or why not?
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Embedded software development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning