https://github.com/bluegob/cuby
this is an algorithm for cpu scheduling /ordonnanceur des processus
https://github.com/bluegob/cuby
c cpu-scheduling
Last synced: 9 months ago
JSON representation
this is an algorithm for cpu scheduling /ordonnanceur des processus
- Host: GitHub
- URL: https://github.com/bluegob/cuby
- Owner: BlueGob
- Created: 2021-12-04T10:12:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-08T10:43:46.000Z (about 4 years ago)
- Last Synced: 2025-03-02T17:16:15.527Z (over 1 year ago)
- Topics: c, cpu-scheduling
- Language: C
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cuby
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 👊
## installation
you only need to copy and paste this line to install
```bash
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.
## how to use
### config file
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
### run
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 .
## additional information
### make file
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
### add your algorithm
you can add your own algorithms inside source code and update with **make update** and it will be automatically added in the menu