Page Faults by Page Replacement Algorithms using Scilab
This is the Scilab Code solution to Problem 9.8, Chapter 9 - Virtual Memory, Operating System Concepts (Book) by Abraham Silberschatz.
Consider the following page reference string:
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
How many page faults would occur for the following replacement algorithms, assuming one, two, three, four, five, six, and seven frames? Remember that all frames are initially empty, so your first unique pages will cost one fault each
- LRU replacement
- FIFO replacement
- Optimal replacement
- Clone / Download this repository
- Open Scilab and Run the main file - Ex_9_8.sce