Bölüm 9 · SimülatörPage Replacement? ← Bölüm 9 FIFO OPT LRU LFU Clock Frames 3 Compare Refs Classic Belady Locality Random Speed 1.5/s ✗ Faults 0 ✓ Hits 0 Hit rate – Step 0/0 ClosePage ReplacementA process references pages in the order of the reference string. A referenced page that is already in a frame is a hit; otherwise it is a page fault and the page is loaded. When all frames are full, the replacement algorithm chooses a victim page to evict. The grid shows the frames after every reference, the strip below shows the algorithm's state (who goes out next).How to useChoose an algorithm and the number of frames (1–8).Type a reference string (up to 40 pages, separated by spaces) or pick a preset.Play, step, or click a reference in the top row of the grid to jump to that step.Compare shows the faults of all algorithms and FIFO faults for 1–6 frames (Belady's anomaly).AlgorithmsFIFOEvict the page loaded earliest.OPTEvict the page used farthest ahead (needs the future; a lower bound).LRUEvict the least recently used page.LFUEvict the lowest count; tie: least recent. Count resets on eviction.ClockR=1: clear and skip (second chance). Evict first R=0. Load sets R=1.Legend ✓ hit ↓ loaded (fault) next out ↑7 evictedBadges#1FIFO queue position (1 = oldest)−2LRU: last used 2 steps ago×3LFU: reference count+4OPT: next use in 4 steps (∞ never)R1Clock reference bitKeys←→ stepSpace playHomeEnd first / lastEsc close