Skip to content

Scilab Code solution to Problem 9.8 of Abraham Silberschatz - Operating System Concepts (Book)

License

Notifications You must be signed in to change notification settings

nikita9604/Page-Replacement-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Problem 9.8:

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

  1. LRU replacement
  2. FIFO replacement
  3. Optimal replacement

Solution:

Steps of Code Execution:

  1. Clone / Download this repository
  2. Open Scilab and Run the main file - Ex_9_8.sce

About

Scilab Code solution to Problem 9.8 of Abraham Silberschatz - Operating System Concepts (Book)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages