Quiz - Page Replacement Algorithm
Quiz - Page Replacement Algorithm
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6
LRU
How many page faults would occur for the 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
following replacement algorithms, assuming
one, two, three, or even four frames?
Remember that all frames are initially empty, so
your first unique pages will all cost one fault
each. (3 pts each)
FIFO
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
LRU
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3
FIFO Optimal
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
Optimal
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3
NAME :
STUDENT TEST SCORE
Year & Section :
INSTRUCTOR /PROFESSOR
Date : (sign if permit is presented)
Tarlac State University
COLLEGE OF COMPUTER STUDIES
OSA – Page Replacement Algorithm
LRU
LRU 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3
FIFO FIFO
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
Optimal Optimal
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
-- Nothing Follows --
NAME :
STUDENT TEST SCORE
Year & Section :
INSTRUCTOR /PROFESSOR
Date : (sign if permit is presented)