Skip to content

icodecedd/page-replacement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Page Replacement Algorithms Simulator

🚀 Advanced Memory Management Algorithm Visualization Tool for Learning & Research


C++ Dev-C++ Page Replacement


📋 Overview

Educational Tool OS Concepts

Page Replacement Algorithms Simulator is a comprehensive educational tool designed to visualize and compare memory management algorithms.
It provides students and researchers with an interactive way to understand how different page replacement strategies handle virtual memory allocation.


✨ Features

🎯 Core Functionality 🔧 Technical Features
Multi-Algorithm Support: OPT, LRU, MRU, FIFO Colorized Output: Easy-to-read console visualization
Interactive Input System: Configure frames & processes dynamically Error Handling: Input validation for smooth execution
Real-time Visualization: Step-by-step execution Cross-Platform: Compatible with Dev-C++ & MinGW64
Performance Metrics: Page fault tracking & analysis Educational Focus: Classroom-ready demonstrations

🧮 Algorithms Implemented

  • Optimal (OPT): Replace the page not needed for the longest time
  • Least Recently Used (LRU): Replace the least recently accessed page
  • Most Recently Used (MRU): Replace the most recently accessed page
  • First-In-First-Out (FIFO): Replace the oldest page in memory

💻 Requirements

🛠️ Development Environment

Dev-C++
Dev-C++ IDE
Main environment for compilation
C++
Compiler
MinGW64 included with Dev-C++

📁 Required Files

colors.h → Color formatting utilities
utility.h → Helper functions & definitions


🚀 Installation

Easy Setup

Step 1: Clone the Repository

git clone https://github.com/icodecedd/page-replacement.git
cd page-replacement-algorithms

Step 2: Setup Dependencies

# Copy the required header files to your Dev-C++ include directory.
# Replace <DEVCPP_PATH> with your Dev-C++ installation path.
# Default path: C:\Program Files (x86)\Dev-Cpp\MinGW64\include\

copy colors.h "<DEVCPP_PATH>\MinGW64\include\" 
copy utility.h "<DEVCPP_PATH>\MinGW64\include\"

Step 3: Compile and Run

  1. Open the project file in Dev-C++.
  2. Press F9 to compile and run.
  3. Follow the interactive prompts to use the simulator.

🤝 Contributing

Contributions Welcome

We enthusiastically welcome contributions from the community! Here's how you can help improve this project:

🐛 Bug Reports 📖 Documentation 💻 Code Contributions 🎨 Enhancements
Report issues and bugs Improve README content Implement new algorithms Improve UI/UX
Suggest improvements Add code comments Optimize existing code Add visualizations
Test on different platforms Create tutorials Add new features Performance optimizations

Contribution Process

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m 'Add new feature')
  4. Push to your branch (git push origin feature-name)
  5. Open a Pull Request

🎓 Designed for Academic Learning & OS Concepts 🎓

Academic Learning Operating Systems

Track Project Engagement:

GitHub Repo stars GitHub forks GitHub Watchers

"Interactive simulations to help students understand page replacement algorithms and core operating system principles"

About

Interactive simulator for visualizing and comparing page replacement memory management algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published