SlideShare a Scribd company logo
Topic:-
Presented By-
Lavina Gehlot
B.C.A 2nd YEAR
Page Replacement :
 Want lowest page-fault rate
 Evaluate algorithm by running it on a particular string
of memory references & computing the number of page
faults & page replacement on that string.
Page Replacement Algorithm
 FIFO Page Replacement Algorithm
 LRU Page Replacement Algorithm
 Optimal Page Replacement Algorithm
First In First
Out Algorithm
Replace that block
in the set that has
been in the cache
for longest period
of time
 FIFO Example
 Reference String is :
1,2,5,3,2,4,5,1,2,6
Frame Size=3
1 1 1 3 3 3 3 3 2 2
2 2 2 2 4 4 4 4 6
5 5 5 5 5 1 1 1
Page Fault : 8
Least Recently
Used Algorithm
Replace that block
in the set that has
been in the cache
for longest period
of time with no
reference to it
 LRU Example
 Reference String is :
5,1,2,3,2,4,5,1,7,6
Frame Size=3
5 5 5 5 5 5 5 5 5 5
1 1 3 3 3 3 1 7 7
2 2 2 4 4 4 4 6
Page Fault: 8
Optimal
Algorithm
(i) Lowest Page
Fault
(ii)Replace the
page that will
not be used for
the longest
period of time
 Optimal Example
 Reference String is:
7,0,1,2,0,3,1,4,2,3
Frame Size=3
7 7 7 2 2 2 2 2 2 2
0 0 0 0 3 3 3 3 3
1 1 1 1 1 4 4 4
Page Fault :6
Page replacement algorithm

More Related Content

What's hot (20)

PPTX
Multiprocessor Scheduling
Khadija Saleem
 
PPTX
Presentation on Segmentation
Priyanka bisht
 
PPT
Virtual memory
aaina_katyal
 
PPT
Virtual memory
Mohammad Sadiq
 
PPT
Virtual memory
tamizh arthanari
 
PDF
Deep learning with FPGA
Ayush Singh, MS
 
PDF
A quick intro to In memory computing
Neobric
 
PPT
Intro to-iterative-deepening
Adel Totott
 
PPTX
Gradient descent optimizer
Hojin Yang
 
PDF
Operating Systems Part III-Memory Management
Ajit Nayak
 
PPTX
Page Replacement Algorithms
Kashif Dayo
 
PPT
Chapter 5 a
ececourse
 
PDF
Shared Memory Centric Computing with CXL & OMI
Allan Cantle
 
PPT
Operating systems galvin-ch1
Bat-Ochir Gan-Ochir
 
PPT
Lecture#5
Adil Alpkoçak
 
PPTX
Unification and Lifting
Megha Sharma
 
DOCX
Basic features of distributed system
satish raj
 
PDF
Bayesian learning
Rogier Geertzema
 
PPT
4 informed-search
Mhd Sb
 
PPTX
Virtual Memory
sanjana mun
 
Multiprocessor Scheduling
Khadija Saleem
 
Presentation on Segmentation
Priyanka bisht
 
Virtual memory
aaina_katyal
 
Virtual memory
Mohammad Sadiq
 
Virtual memory
tamizh arthanari
 
Deep learning with FPGA
Ayush Singh, MS
 
A quick intro to In memory computing
Neobric
 
Intro to-iterative-deepening
Adel Totott
 
Gradient descent optimizer
Hojin Yang
 
Operating Systems Part III-Memory Management
Ajit Nayak
 
Page Replacement Algorithms
Kashif Dayo
 
Chapter 5 a
ececourse
 
Shared Memory Centric Computing with CXL & OMI
Allan Cantle
 
Operating systems galvin-ch1
Bat-Ochir Gan-Ochir
 
Lecture#5
Adil Alpkoçak
 
Unification and Lifting
Megha Sharma
 
Basic features of distributed system
satish raj
 
Bayesian learning
Rogier Geertzema
 
4 informed-search
Mhd Sb
 
Virtual Memory
sanjana mun
 

Viewers also liked (8)

PPTX
Ofdm(tutorial)
Gopal Rakecha
 
PPTX
Process State & Life Cycle
Piyush Ramchandani
 
PPT
Page replacement
sashi799
 
PPT
Page Replacement
chandinisanz
 
PPTX
bus and memory tranfer (computer organaization)
Siddhi Viradiya
 
PPTX
Apurva
Apurva ..
 
PPT
Slideshare Powerpoint presentation
elliehood
 
PPTX
Slideshare ppt
Mandy Suzanne
 
Ofdm(tutorial)
Gopal Rakecha
 
Process State & Life Cycle
Piyush Ramchandani
 
Page replacement
sashi799
 
Page Replacement
chandinisanz
 
bus and memory tranfer (computer organaization)
Siddhi Viradiya
 
Apurva
Apurva ..
 
Slideshare Powerpoint presentation
elliehood
 
Slideshare ppt
Mandy Suzanne
 
Ad

Similar to Page replacement algorithm (20)

PPTX
Page replacement algorithm
Nikhil Katte
 
PDF
Pge Replacement Algorithm.pdf
82NehaPal
 
PPTX
Page replacement algorithms
sangrampatil81
 
PPT
Pagereplacement algorithm(computional concept)
Siddhi Viradiya
 
PPT
Explain about replacement algorithms from these slides
ssusera979f41
 
PPT
Replacement.ppt operating system in BCA cu
PankajKumar790026
 
DOCX
Chosse a best algorithm for page replacement to reduce page fault and analysi...
MdAlAmin187
 
PPTX
Page Replacement Methods-R.D.Sivakumar
Sivakumar R D .
 
PPTX
page replacement.pptx
homipeh
 
PPTX
Page replacement_Architecture ppt (213015018+213015017).pptx
MD SAZID ZAMIL
 
PPTX
Page replacement alg
V.V.Vanniapermal College for Women
 
PPTX
Page replacement
Davin Abraham
 
PPT
9415070 deepak kumar raja kumar hgdxgfgcg
deepakraja1120
 
PPTX
Virtual memory management in Operating System
Rashmi Bhat
 
PPTX
Comparision of page replacement algorithms.pptx
SureshD94
 
PPTX
Understanding-FIFO-Page-Replacement.pptx
shreyacmore23
 
PPT
Operating System
Subhasis Dash
 
PPT
41 page replacement fifo
myrajendra
 
PPT
42 lru optimal
myrajendra
 
Page replacement algorithm
Nikhil Katte
 
Pge Replacement Algorithm.pdf
82NehaPal
 
Page replacement algorithms
sangrampatil81
 
Pagereplacement algorithm(computional concept)
Siddhi Viradiya
 
Explain about replacement algorithms from these slides
ssusera979f41
 
Replacement.ppt operating system in BCA cu
PankajKumar790026
 
Chosse a best algorithm for page replacement to reduce page fault and analysi...
MdAlAmin187
 
Page Replacement Methods-R.D.Sivakumar
Sivakumar R D .
 
page replacement.pptx
homipeh
 
Page replacement_Architecture ppt (213015018+213015017).pptx
MD SAZID ZAMIL
 
Page replacement
Davin Abraham
 
9415070 deepak kumar raja kumar hgdxgfgcg
deepakraja1120
 
Virtual memory management in Operating System
Rashmi Bhat
 
Comparision of page replacement algorithms.pptx
SureshD94
 
Understanding-FIFO-Page-Replacement.pptx
shreyacmore23
 
Operating System
Subhasis Dash
 
41 page replacement fifo
myrajendra
 
42 lru optimal
myrajendra
 
Ad

Recently uploaded (20)

PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Foundations of Marketo Engage - Powering Campaigns with Marketo Personalization
bbedford2
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 

Page replacement algorithm

  • 2. Page Replacement :  Want lowest page-fault rate  Evaluate algorithm by running it on a particular string of memory references & computing the number of page faults & page replacement on that string.
  • 3. Page Replacement Algorithm  FIFO Page Replacement Algorithm  LRU Page Replacement Algorithm  Optimal Page Replacement Algorithm
  • 4. First In First Out Algorithm Replace that block in the set that has been in the cache for longest period of time  FIFO Example  Reference String is : 1,2,5,3,2,4,5,1,2,6 Frame Size=3 1 1 1 3 3 3 3 3 2 2 2 2 2 2 4 4 4 4 6 5 5 5 5 5 1 1 1 Page Fault : 8
  • 5. Least Recently Used Algorithm Replace that block in the set that has been in the cache for longest period of time with no reference to it  LRU Example  Reference String is : 5,1,2,3,2,4,5,1,7,6 Frame Size=3 5 5 5 5 5 5 5 5 5 5 1 1 3 3 3 3 1 7 7 2 2 2 4 4 4 4 6 Page Fault: 8
  • 6. Optimal Algorithm (i) Lowest Page Fault (ii)Replace the page that will not be used for the longest period of time  Optimal Example  Reference String is: 7,0,1,2,0,3,1,4,2,3 Frame Size=3 7 7 7 2 2 2 2 2 2 2 0 0 0 0 3 3 3 3 3 1 1 1 1 1 4 4 4 Page Fault :6