Skip to content

A python simulation of FIFO(First In, First Out), OTM(Optimum Algorithm) and LRU(Least Recently Used) page substitution algorithms.

License

Notifications You must be signed in to change notification settings

caiomcg/OS-PageSubstitution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OS-PageSubstitution

GitHub license

A python simulation of FIFO(First In, First Out), OTM(Optimum Algorithm) and LRU(Least Recently Used) page substitution algorithms.

Requirements

  • Python interpreter.

Build Instructions

  • Clone the project.
  • Execute main.py
$> git clone https://github.com/caiomcg/OS-PageSubstitution.git
$> cd OS-PageSubstitution

Execution Instructions

With a file

  • Move to the debug folder.
  • Run the script and pipe a file to it.
$> cd OS-PageSubstitution
$> ./main.py < input.txt

Directly to the application

  • Move to the repository folder.
  • Run the script and type the input.
  • Send EOF signal
$> cd OS-PageSubstitution
$> ./main.py
$> 4
$> 4
$> 2
$> 3
$> 5
$> 1
$> 2
$> 2
$> 3
$> 4
$> CTRL + D

About

A python simulation of FIFO(First In, First Out), OTM(Optimum Algorithm) and LRU(Least Recently Used) page substitution algorithms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages