Skip to content

generator of solution for one of the tasks on the semester test at MIPT (3 sem, сomputer techologies)

License

Notifications You must be signed in to change notification settings

Hollbrok/Page-fault-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Page fault counter + table painter

this one was written one day before the final test. This program counts the number of PF(page faults) and also prints tables for different algorithms (FIFS, LRU, OPT)

Code

Don't pay too much attention to this code, because there is a lot of shitcode, xD.

Hot to use

git clone https://github.com/Hollbrok/Page-fault-counter.git
cd Page-fault-counter/
make
./a __PROC_ALLOC_FRAMES__ [queue of frames]

Перерисовать таблицы, чтобы семер не спросил как вы получили ответ. P.S. для FIFO, перед перенесением в тетрадь, таблицу нужно транспонировать.

Example

./a 3 1 2 3 5 2 1 4 5 2 1 3 4 1 2 5 1 3 2 4

There is 3 -- number of frames allocated to the process.

So there you can see example of output:

output

About

generator of solution for one of the tasks on the semester test at MIPT (3 sem, сomputer techologies)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published