Memory Management – Page Fault & Page Replacement

22 flashcardspar —Griffith—
Réviser ces flashcardsGratuit · répétition espacée · iPhone, Android, Mac et web

Toutes les cartes

1
What is a page fault?
A page fault occurs when a process tries to use a page that is not in memory, causing an operating system interrupt.
2
When does a page fault occur?
A page fault occurs when a page that is needed is not loaded in memory.
3
What is the first step in handling a page fault?
The page table is checked for the memory reference.
4
What happens if the desired page is not in memory during a page fault?
A page fault trap occurs, which is an operating system interrupt.
5
How does the OS handle a missing page in memory?
The OS locates the page on auxiliary storage (disk) and loads it into a free memory frame.
6
What must the OS do after loading the page into memory?
The OS resets the page table to mark the page as valid and restarts the instruction that caused the page fault.
7
When does page replacement occur?
Page replacement occurs when there are no free frames available to load a missing page.
8
What is the goal of a page replacement algorithm?
To find a frame to free in order to reduce page faults.
9
How is a frame freed during page replacement?
A victim page is selected, its contents are copied to disk if modified, the page table is updated to mark it invalid, and the frame is then available.
10
What factors are considered when selecting a page replacement algorithm?
The algorithm is chosen to have the lowest page fault rate.
11
Name some types of page replacement algorithms.
FIFO (First In First Out), Optimal, Least Recently Used (LRU), Random, Second Chance.
12
What is the FIFO page replacement algorithm?
FIFO replaces the oldest page in memory based on the age of pages.
13
How many page faults occur in the FIFO example with 3 frames?
15 page faults.
14
What is Belady’s Anomaly?
It is when increasing the number of memory frames causes an increase in page faults, observed in some algorithms like FIFO.
15
Which algorithm has the lowest page fault rate and does not suffer from Belady’s anomaly?
The Optimal page replacement algorithm.
16
How does the Optimal algorithm choose a page to replace?
It replaces the page that will not be used for the longest period in the future.
17
Why is the Optimal algorithm difficult to implement?
It requires knowledge of future memory references, which is generally not available.
18
What is the LRU (Least Recently Used) page replacement algorithm?
LRU replaces the page that has not been used for the longest period, based on past usage history.
19
What is needed for LRU implementation?
Hardware assistance to track and order frames by their last used time.
20
How does the Random page replacement algorithm work?
It selects any page at random to replace.
21
What is the Second Chance algorithm?
A variation of FIFO where pages with a set reference bit are given a second chance and moved to the end of the queue before replacement.
22
What is thrashing in memory management?
Thrashing occurs when high page replacement activity causes processes to spend more time paging than executing, reducing CPU utilization and system throughput.
Réviser les 22 cartes gratuitement

Plus de flashcards : Informatique

Computer Networks (Study Guide)69 cartesInformatique · AnglaisSgCS 150 Introduction to Computer Science58 cartesInformatique · AnglaisCalvinPrinciples of Management Exam 1 Vocabulary47 cartesInformatique · AnglaisAdinbealSection 2- system software 41 cartesInformatique · AnglaisDsobo1.3.4 WEB TECHNOLOGIES35 cartesInformatique · AnglaisSabs2023Module 2 Questions30 cartesInformatique · AnglaisJayChapter 20 Further Programming23 cartesInformatique · AnglaisriaCS 320 WEB TECHNOLOGIES & FRAMEWORKS18 cartesInformatique · AnglaisElijahAlgorithms and Flowcharts Study Guide13 cartesInformatique · AnglaisSgSoftware Development Midterms151 cartesInformatique · AnglaisEdsonGIS Concepts, Data Types and Models142 cartesInformatique · AnglaisDekanoDistributed Systems: Networks and Centralization96 cartesInformatique · Anglaisbauniee

Tous les decks : Informatique

Révise ces decks dans l’app

Gratuit sur iPhone, Android, Mac et le web. Ajoute n’importe quel deck à ton compte en un tap.

Télécharger dans l’App StoreDisponible sur Google Play
Réviser les 22 cartes gratuitement