A python simulation of FIFO(First In, First Out), OTM(Optimum Algorithm) and LRU(Least Recently Used) page substitution algorithms.
- Python interpreter.
- Clone the project.
- Execute main.py
$> git clone https://github.com/caiomcg/OS-PageSubstitution.git
$> cd OS-PageSubstitution
- Move to the debug folder.
- Run the script and pipe a file to it.
$> cd OS-PageSubstitution
$> ./main.py < input.txt
- 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