GithubHelp home page GithubHelp logo

cuby's Introduction

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

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

2022-05-06_15-38

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

2022-05-06_15-42

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

cuby's People

Contributors

bluegob avatar

Watchers

 avatar

Forkers

maha-houidi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.