Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
/ page-replacer Public archive

Implementation and comparison of several page replacement algorithms

License

Notifications You must be signed in to change notification settings

grantslape/page-replacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

page-replacer

Build Status CodeFactor

Implementation and comparison of several page replacement algorithms:

  • FIFO: First in, first out
  • LRU: Least recently used
  • OPT: Optimal Replacement

[Plot Image]

Dependencies

  • Python >=3.4

Usage

$ ./run.sh

Please note that installation of requirements packages can take some time, so go grab a coffee.

Advanced Usage

  1. Create virtual environment

    $ python3 -m venv env
    $ source env/bin/activate
  2. Install requirements (Takes some time)

    $ pip install --upgrade setuptools
    $ pip install -r requirements.txt
  3. Run tests

    $ python -m unittest discover tests/ "test_*.py"
  4. Run simulation

    $ python main.py <SEED> [--frames <MAX_FRAMES]
  5. Deactivate environment

    $ deactivate

About

Implementation and comparison of several page replacement algorithms

Resources

License

Stars

Watchers

Forks

Packages

No packages published