Interactive Second Chance page replacement simulator: a FIFO queue with reference bits, where pages with their bit set are rotated to the back instead of evicted.

Presets
Reference string processed left to right
Step 0 / 0
Idle
Press play or step forward to begin. Second Chance is FIFO with a reference bit. On a hit, the page's bit is set to 1. On a fault, inspect the page at the front of the queue: if its bit is 1, clear it and move it to the back (a second chance); repeat until you reach a page with bit 0 — that one is evicted.
FIFO queue with reference bits · front (oldest) → back (newest)
inspect
front
load /
spared
Speed
Faults
0
Hits
0
Hit ratio
0%
Chances given
0
Step historylatest 2 steps
# Pg Queue front→back (page:bit) Result
No steps yet