this is an alogrithm for scheduling processes based on config file and using algorithms fifo/sjf/round robin/.. this project is developped using make file and C under linux. i love to call it cuby ๐
you only need to copy and paste this line to install
make install
this command will compile all the source code in source-code folder and create algorithms directory and put all the compiled code inside of it.
cuby need a config file to work it's called config.conf in which we define the processes.
you need to put one process per line in this order name-priority-arrivalTime-cpuTime and don't forget the - between each attribute for exemple : p1-1-0-5
note: you can put comments inside config file with # as the first caracter in the line
cuby need config file as parameter so you can simply run it with :
./cuby config.conf
after that you can type help to see what cuby has to offer
so we have
- menu: to display the available cpu scheduling algorithms
- clear : to clear screen
- config : to display the config file
- 1 .. n : to choose one between the cpu scheduling algorithms
For exemple we choose the first algorithm
wee see the GANTT diagram of the execution .
make file has 3 command
make install
which i talked about in the installation
make remove
to remove the compiled files
make update
this commande will recompile the source code in case you change something or you add new cpu scheduling algorithm
you can add your own algorithms inside source code and update with make update and it will be automatically added in the menu