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

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
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
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
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
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
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
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
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...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
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
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
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
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 

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.