Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
r 34
r 4592
r 2000
w 2000
r 1492
r 24120

Contains 0 operations.
0 operations processed.
Initially empty.


(page 1)


Lookahead list example


* w 2000
w 1492
r 456
w 24121
r 24120
r 34
r 4592
r 2000
w 2000
r 1492
r 24120

Contains 1 operation.
0 operations processed.


(page 2)


Lookahead list example


w 2000
* w 1492
r 456
w 24121
r 24120
r 34
r 4592
r 2000
w 2000
r 1492
r 24120

Contains 2 operations.
0 operations processed.


(page 3)


Lookahead list example


w 2000
w 1492
* r 456
w 24121
r 24120
r 34
r 4592
r 2000
w 2000
r 1492
r 24120

Contains 3 operations.
0 operations processed.


(page 4)


Lookahead list example


w 2000
w 1492
r 456
* w 24121
r 24120
r 34
r 4592
r 2000
w 2000
r 1492
r 24120

Contains 4 operations.
0 operations processed.


(page 5)


Lookahead list example


+ w 2000
w 1492
r 456
w 24121
* r 24120
r 34
r 4592
r 2000
w 2000
r 1492
r 24120

Contains 4 operations.
1 operation processed.


(page 6)


Lookahead list example


w 2000
+ w 1492
r 456
w 24121
r 24120
* r 34
r 4592
r 2000
w 2000
r 1492
r 24120

Contains 4 operations.
2 operations processed.


(page 7)


Lookahead list example


w 2000
w 1492
+ r 456
w 24121
r 24120
r 34
* r 4592
r 2000
w 2000
r 1492
r 24120

Contains 4 operations.
3 operations processed.


(page 8)


Lookahead list example


w 2000
w 1492
r 456
+ w 24121
r 24120
r 34
r 4592
* r 2000
w 2000
r 1492
r 24120

Contains 4 operations.
4 operations processed.


(page 9)


Lookahead list example


w 2000
w 1492
r 456
w 24121
+ r 24120
r 34
r 4592
r 2000
* w 2000
r 1492
r 24120

Contains 4 operations.
5 operations processed.


(page 10)


Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
+ r 34
r 4592
r 2000
w 2000
* r 1492
r 24120

Contains 4 operations.
6 operations processed.


(page 11)


Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
r 34
+ r 4592
r 2000
w 2000
r 1492
* r 24120

Contains 4 operations.
7 operations processed.


(page 12)


Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
r 34
+ r 4592
r 2000
w 2000
r 1492
* r 24120

Contains 4 operations.
7 operations processed.

No more input!
flush() is called, which indicates to process the
rest of the lookahead list.


(page 13)


Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
r 34
r 4592
+ r 2000
w 2000
r 1492
r 24120

Contains 3 operations.
8 operations processed.


(page 14)


Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
r 34
r 4592
r 2000
+ w 2000
r 1492
r 24120

Contains 2 operations.
9 operations processed.


(page 15)


Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
r 34
r 4592
r 2000
w 2000
+ r 1492
r 24120

Contains 1 operation.
10 operations processed.


(page 16)


Lookahead list example


w 2000
w 1492
r 456
w 24121
r 24120
r 34
r 4592
r 2000
w 2000
r 1492
+ r 24120

Contains 0 operations.
All 11 operations
processed.


(page 17)


Finding frame to remove




(page 18)


PLRU example 1




(page 19)


PLRU example 1






(page 20)


PLRU example 1


v

^


(page 21)


PLRU example 1


v

^


(page 22)


PLRU example 1


v

^


(page 23)


PLRU example 1







(page 24)