Page Replacement Flashcards
What is demand paging?
Puts pages in memory when needed.
Trying to access a page not currently in memory is called what?
A page fault
What swaps unnecessary pages?
Optimal Page Replacement
What are the advantages and disadvantages of Optimal page replacement.
Advantage
- Minimal Damage
-Looks forward in time
Disadvantage
- Unimplementable because it requires knowledge of future memory
Describe how each page replacement kicks out a page.
Optimal - Kicks out page with longest time before used again.
FIFO - Kicks out oldest page
LRU - kicks out page used less recently
What are the advantages and disadvantages of FIFO page replacement.
Advantages
- simple and easy to use
- very active
Disadvantages
- increase of page faults
- might throw out important pages
What are the advantages and disadvantages of LRU page replacement.
Advantages
-Gives less page faults
Disadvantages
- expensive and more complex
-very consuming
When processes have excessive page faults and spend more time swapping than working it is called __________.
Thrashing
What is a working set?
Pages used by a process