Virtual Memory
Virtual Memory
OBJECTIVES:
After studying this unit, you should be able to:
1. Discuss Virtual Memory
2. Explain operations of Virtual Memory
3. Application of Virtual memory
4. Describe Demand Paging in operating
systems
5. Discuss Page Replacement Algorithm
1
Definition
3
Purpose of Virtual memory
4
Purpose of MMU
6
Application of Virtual memory
7
Demand Paging
8
Demand Paging
9
Demand Paging
10
Demand Paging
11
Advantages
12
Disadvantages
13
Page Replacement Algorithm
14
Page Replacement Algorithm
15
Page Replacement Algorithm
18
Reference String
19
Reference String
20
Reference String
21
First In First Out (FIFO) algorithm
22
First In First Out (FIFO) algorithm
23
Optimal Page algorithm
25
Least Recently Used (LRU) algorithm
26
Least Recently Used (LRU) algorithm
27
Page Buffering algorithm
29
Comparison among Scheduler
30
Self Assessment Questions
• 1. Every process needs to be loaded into physical
memory for execution. (True / False)
• 2. _______________ is implemented using demand
paging.
• 3. When a process is to be executed then only that
page of the process, which needs to be currently
executed, is swapped into memory. This method is
called _______________. (Pick the right option)
• a) Demand Paging
• b) Request Paging
• c) Swap Paging
• d) Change Paging
31
Self Assessment Questions
32
Self Assessment Questions
• 7. _______________ is a high paging activity
in which a process spends more time in paging
than executing.
• 8. PFF stands for _______________. (Pick the
right option)
• a) Page Fault Finder
• b) Page Finding Frequency
• c) Page Fault Frequency
• d) Page Fault Finding
33
Answers to Self Assessment Questions
• 1. True
• 2. Virtual Memory
• 3. a) Demand Paging
• 4. False
• 5. Optimal Page Replacement
• 6. True
• 7. Thrashing
• 8. c) Page Fault Frequency
•
34
QUESTIONS TIME
35
NEXT TOPIC
36