SlideShare a Scribd company logo
1 of 14
BRAINWARE UNIVERSITY
S T U D E N T N A M E : - T W I N D A S
S T U D E N T C O D E : - B W U / B T D / 2 1 / 0 1 8
PA P E R N A M E : - P C C - C S D 3 0 1
PA P E R C O D E : - C O M P U T E R O R G A N I Z A T I O N
A N D A R C H I T E C H T U R E
T O P I C N A M E : - V I R T UA L M E M O R Y
C O U R S E : - B . T E C H I N C S E ( D S )
S E M E S T E R : - 3 R D
D E PA R T M E N T : - C O M P U T E R S C I E N C E A N D
E N G I N E E R I N G
CONTENTS
 Introduction
 Needs of virtual memory
 Importance of virtual memory
 Address space and memory space
 Page Replacement Algorithms
 FIFO
 LRU
 OPT
 Advantages of Virtual Memory
 Disadvantage of Virtual Memory
INTRODUCTION
Virtual memory as an alternate set of memory addresses.
Programs use these virtual addresses rather than real addresses to
store instructions and data.
When the program is actually executed, the virtual addresses are
converted into real memory addresses.
NEEDS OF VIRTUAL MEMORY
 Virtual memory is a imaginary memory which we are assuming. If we
have a material that exceed your memory at that time we need to use
the concept of virtual memory.
 virtual memory is temporary memory which is used along with the
ram of the system.
IMPORTANCE OF VIRTUAL MEMORY
 When your computer runs out of physical memory it writes what it
needs to remember to the hard disc in a swap file as virtual memory.
 If a computer running Windows requires more memory/RAM then
there is installed in the system to run a program etc, it uses a small
section of the hard drive for this purpose.
ADDRESS SPACE AND MEMORY SPACE
 Virtual memory is the address used by the programmer and the set of
such addresses is called address space.
 An address in main memory is called a physical address.
 The set of such locations in main memory is called the memory space.
 Thus the memory space consist of the actual main memory locations
directly addressable for processing.
PAGE REPLACEMENT ALGORITHMS
It is the technique used by operating system to decide which memory
pages swap out .
It is also decided that is memory , how much frames to allocate
to each process.
FIRST IN FIRST OUT(FIFO)
Very simple to implement.
Oldest page is replaced for replacement.
Performance is not always good.
1) Reference String:-1,2,3,4,1,2,5,2,2,3,4,5
4
2
3
4
1
3
4
1
2
5
1
2
5
3
2
5
3
4
4
2
5
3
4
1
2
3
1
F1
F2
F3
OPTIMAL PAGE REPLACEMENT(OPT)
Looks for page in future.
Lowest page fault.
Difficult to implement.
1) Reference String:-7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1
7
0
1
2
0
1
2
0
3
2
4
3
2
0
3
2
0
1
7
0
1
2
3
4 0
1
7
F1
F2
F3
LEAST RECENTLY USED(LRU)
Page which has not been used for the longest time in main memory
the one which will be selected for replacement.
It is like optimal page-replacement algorithm looking
backwards in time.
1) Reference String:-7,0,1,2,0,3,0,4,2,3
7
0
1
2
0
1
2
0
3
4
0
3
4
0
2
4
3
2
2
3
4
2
3
F1
F2
F3
ADVANTAGES OF VIRTUAL MEMORY
o Only part of the program needs to be in memory for execution.
o Logical address space is much larger than physical address space.
o Need to allow pages to be swapped in and out.
o Virtual memory allows speed gain when only a particular segment of
the program is required for the execution of the program.
o This concept is very helpful in implementing
multiprogramming environment.
DISADVANTAGE OF VIRTUAL MEMORY
o Applications run slower if the system is using virtual memory.
o It takes more time to switch between applications.
o It reduces system stability.
REFERANCE
Youtube
Google
Browser
VIRTUAL  2.pptx

More Related Content

Similar to VIRTUAL 2.pptx

Virtual memory presentation
Virtual memory presentationVirtual memory presentation
Virtual memory presentationRanjeet Kumar
 
Int 2 computer structure 2010
Int 2 computer structure 2010Int 2 computer structure 2010
Int 2 computer structure 2010iarthur
 
Introduction to Java Profiling
Introduction to Java ProfilingIntroduction to Java Profiling
Introduction to Java ProfilingJerry Yoakum
 
virtual memoey.pptx
virtual memoey.pptxvirtual memoey.pptx
virtual memoey.pptxSmitaAparadh
 
Lec 3 Computer Hardware (Nursing Informatics).pdf
Lec 3 Computer Hardware (Nursing Informatics).pdfLec 3 Computer Hardware (Nursing Informatics).pdf
Lec 3 Computer Hardware (Nursing Informatics).pdfSarahJaneMagante
 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementkazim Hussain
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual MemoryArchith777
 
Virtual Mapping in Virtual Memory
Virtual Mapping in Virtual MemoryVirtual Mapping in Virtual Memory
Virtual Mapping in Virtual MemoryMeghaj Mallick
 
Unit 2chapter 2 memory mgmt complete
Unit 2chapter 2  memory mgmt completeUnit 2chapter 2  memory mgmt complete
Unit 2chapter 2 memory mgmt completeKalai Selvi
 
Computer fundamental unit 1
Computer fundamental unit 1Computer fundamental unit 1
Computer fundamental unit 1SURBHI SAROHA
 
computer Systems & Memory .pptx
 computer Systems & Memory .pptx computer Systems & Memory .pptx
computer Systems & Memory .pptxafnanalkafre
 
Paging and Segmentation
Paging and SegmentationPaging and Segmentation
Paging and SegmentationMadhur Gupta
 
Virtual Memory in Operating System
Virtual Memory in Operating SystemVirtual Memory in Operating System
Virtual Memory in Operating SystemMeghaj Mallick
 
Memories in digital electronics
Memories in digital electronicsMemories in digital electronics
Memories in digital electronicsSijuGeorge10
 
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...Virtual Memory ,Direct memory addressing and indirect memory addressing prese...
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...ITM University
 

Similar to VIRTUAL 2.pptx (20)

Co question 2006
Co question 2006Co question 2006
Co question 2006
 
Virtual memory presentation
Virtual memory presentationVirtual memory presentation
Virtual memory presentation
 
Os unit 2
Os unit 2Os unit 2
Os unit 2
 
segmentation
segmentationsegmentation
segmentation
 
Int 2 computer structure 2010
Int 2 computer structure 2010Int 2 computer structure 2010
Int 2 computer structure 2010
 
Introduction to Java Profiling
Introduction to Java ProfilingIntroduction to Java Profiling
Introduction to Java Profiling
 
virtual memoey.pptx
virtual memoey.pptxvirtual memoey.pptx
virtual memoey.pptx
 
Lec 3 Computer Hardware (Nursing Informatics).pdf
Lec 3 Computer Hardware (Nursing Informatics).pdfLec 3 Computer Hardware (Nursing Informatics).pdf
Lec 3 Computer Hardware (Nursing Informatics).pdf
 
Memory devices
Memory devicesMemory devices
Memory devices
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory management
 
Virtual Memory
Virtual MemoryVirtual Memory
Virtual Memory
 
Virtual Mapping in Virtual Memory
Virtual Mapping in Virtual MemoryVirtual Mapping in Virtual Memory
Virtual Mapping in Virtual Memory
 
Unit 2chapter 2 memory mgmt complete
Unit 2chapter 2  memory mgmt completeUnit 2chapter 2  memory mgmt complete
Unit 2chapter 2 memory mgmt complete
 
Computer fundamental unit 1
Computer fundamental unit 1Computer fundamental unit 1
Computer fundamental unit 1
 
computer Systems & Memory .pptx
 computer Systems & Memory .pptx computer Systems & Memory .pptx
computer Systems & Memory .pptx
 
Paging and Segmentation
Paging and SegmentationPaging and Segmentation
Paging and Segmentation
 
Virtual Memory in Operating System
Virtual Memory in Operating SystemVirtual Memory in Operating System
Virtual Memory in Operating System
 
Memories in digital electronics
Memories in digital electronicsMemories in digital electronics
Memories in digital electronics
 
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...Virtual Memory ,Direct memory addressing and indirect memory addressing prese...
Virtual Memory ,Direct memory addressing and indirect memory addressing prese...
 

Recently uploaded

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

VIRTUAL 2.pptx

  • 1. BRAINWARE UNIVERSITY S T U D E N T N A M E : - T W I N D A S S T U D E N T C O D E : - B W U / B T D / 2 1 / 0 1 8 PA P E R N A M E : - P C C - C S D 3 0 1 PA P E R C O D E : - C O M P U T E R O R G A N I Z A T I O N A N D A R C H I T E C H T U R E T O P I C N A M E : - V I R T UA L M E M O R Y C O U R S E : - B . T E C H I N C S E ( D S ) S E M E S T E R : - 3 R D D E PA R T M E N T : - C O M P U T E R S C I E N C E A N D E N G I N E E R I N G
  • 2. CONTENTS  Introduction  Needs of virtual memory  Importance of virtual memory  Address space and memory space  Page Replacement Algorithms  FIFO  LRU  OPT  Advantages of Virtual Memory  Disadvantage of Virtual Memory
  • 3. INTRODUCTION Virtual memory as an alternate set of memory addresses. Programs use these virtual addresses rather than real addresses to store instructions and data. When the program is actually executed, the virtual addresses are converted into real memory addresses.
  • 4. NEEDS OF VIRTUAL MEMORY  Virtual memory is a imaginary memory which we are assuming. If we have a material that exceed your memory at that time we need to use the concept of virtual memory.  virtual memory is temporary memory which is used along with the ram of the system.
  • 5. IMPORTANCE OF VIRTUAL MEMORY  When your computer runs out of physical memory it writes what it needs to remember to the hard disc in a swap file as virtual memory.  If a computer running Windows requires more memory/RAM then there is installed in the system to run a program etc, it uses a small section of the hard drive for this purpose.
  • 6. ADDRESS SPACE AND MEMORY SPACE  Virtual memory is the address used by the programmer and the set of such addresses is called address space.  An address in main memory is called a physical address.  The set of such locations in main memory is called the memory space.  Thus the memory space consist of the actual main memory locations directly addressable for processing.
  • 7. PAGE REPLACEMENT ALGORITHMS It is the technique used by operating system to decide which memory pages swap out . It is also decided that is memory , how much frames to allocate to each process.
  • 8. FIRST IN FIRST OUT(FIFO) Very simple to implement. Oldest page is replaced for replacement. Performance is not always good. 1) Reference String:-1,2,3,4,1,2,5,2,2,3,4,5 4 2 3 4 1 3 4 1 2 5 1 2 5 3 2 5 3 4 4 2 5 3 4 1 2 3 1 F1 F2 F3
  • 9. OPTIMAL PAGE REPLACEMENT(OPT) Looks for page in future. Lowest page fault. Difficult to implement. 1) Reference String:-7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1 7 0 1 2 0 1 2 0 3 2 4 3 2 0 3 2 0 1 7 0 1 2 3 4 0 1 7 F1 F2 F3
  • 10. LEAST RECENTLY USED(LRU) Page which has not been used for the longest time in main memory the one which will be selected for replacement. It is like optimal page-replacement algorithm looking backwards in time. 1) Reference String:-7,0,1,2,0,3,0,4,2,3 7 0 1 2 0 1 2 0 3 4 0 3 4 0 2 4 3 2 2 3 4 2 3 F1 F2 F3
  • 11. ADVANTAGES OF VIRTUAL MEMORY o Only part of the program needs to be in memory for execution. o Logical address space is much larger than physical address space. o Need to allow pages to be swapped in and out. o Virtual memory allows speed gain when only a particular segment of the program is required for the execution of the program. o This concept is very helpful in implementing multiprogramming environment.
  • 12. DISADVANTAGE OF VIRTUAL MEMORY o Applications run slower if the system is using virtual memory. o It takes more time to switch between applications. o It reduces system stability.