Giter Site home page Giter Site logo

page_replacement_algorithm_simulation's Introduction

Objectives:

Develop a memory management simulator to simulate various Page Replacement Algorithms: First In First Out (FIFO), Least Recently Used (LRU), Least Frequency Used (LFU), and Optimal algorithms.


Requirements:

  1. Programming Language & Structure:

    • Implement the simulator using classes and data structures in any chosen programming language.
  2. User-Friendly Interface:

    • Create an intuitive interface allowing users to:
      • Input parameters: Sequence of page references, frames in physical memory, and other relevant settings.
      • Visualizations or output mechanisms: Display progression of page replacements and the physical memory state at each step for better comprehension.
      • Logging: Record statistics (e.g., page hits, faults) to facilitate analysis and algorithm comparison.

Program Output:

  1. Page Replacement Log:

    • Detailed log of each page replacement action: indicating replaced and newly brought pages into physical memory.
  2. Memory State Visualization:

    • Visual representation illustrating memory state after each replacement: display pages in physical memory and their states (e.g., recently used, frequency counts).
  3. Performance Metrics:

    • Clear presentation of key metrics like page hit percentage, fault percentage, and other relevant statistics.
  4. Summary Statistics:

    • Aggregate statistics summarizing the overall performance of each page replacement algorithm.

Sequence Input Format:

Number of Page References:

  • Number of page references in the sequence.

Sequence of Page References:

  • Sequence of page references (e.g., 1 2 3 4 1 2 5 1 2 3).

Number of Frames in Physical Memory:

  • Number of frames in physical memory.

Example:

10 (number of page references)
1 2 3 4 1 2 5 1 2 3 (sequence of page references)
3 (number of frames in physical memory)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.