Skip to content

usabhishek/page_replacement_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

OS- Page Replacement Algorithm Simulator

The goal of the Page Replacement Algorithm Simulator project was to provide a platform to simulate and compare various page replacement algorithms like FIFO, LRU, MRU, OPR using Python and Tkinter

The project was aimed at providing an easy-to-use Graphical User Interface (GUI) application that can be used by students, researchers, and professionals to study and compare the performance of different page replacement algorithms.

Features of the project

The Page Replacement Algorithm Simulator project comes with several features that make it a useful tool for studying and comparing different page replacement algorithms. Some of the important features of the project are:

  • User-friendly Interface
  • Multiple Algorithms: 1.FIFO (First In First Out)
    2. LRU (Least Recently Used)
    3. OPR (Optimal Page Replacement) 4. MRU (Most Recently Used)
  • Real-time Simulation
  • Interactive Bar Charts
  • File handling as it saves results to a file : page_replacement_results.txt.

Requirements

  • Python 3.x

Required Libraries:

  • tkinter (Usually pre-installed with Python)
  • ttk (Comes with tkinter)
  • matplotlib

How to Run

Clone or Download the project.
Navigate to the project directory.
Run the script using: python page_replacement_simulator.py

Usage Instructions

Enter the Reference String 
Enter the Number of Frames
Select the Algorithm 
Run Simulation
View Results 
Plot Results

Output
Results are displayed in the GUI.
Results are saved to a file named page_replacement_results.txt.
The graph shows a bar chart comparing total page faults.

📝 License This project is licensed under the MIT License — feel free to modify and use it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages