GithubHelp home page GithubHelp logo

isinerds / multitasking-scheduling-algorithm-simulation-system Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 2.0 4.28 MB

multitasking scheduling algorithm simulation system

Makefile 1.01% C 98.20% Shell 0.13% CMake 0.67%
c operating-system raylib-c scheduling-algorithms

multitasking-scheduling-algorithm-simulation-system's Introduction


Multitasking Scheduling Algorithm Simulation System (MSASS)

The multitasking scheduling algorithm simulation system is designed to implement various scheduling algorithms such as FIFO, RR, SRT, etc, offering a platform to simulate their execution and visualize the results on the interface. It is developed using C, makefile and Raylib and Raygui libraries under Linux.

Key features

  • Simulation of various scheduling algorithms.
  • Visualization and analysis of processes scheduling behavior.
  • Customizable processes parameters for experimentation.

Prerequisities

Before utilising this simulation system ensure the following:

  • Access to Linux or WSL
  • The gcc compiler is installed
  • The Cmake is installed

Getting started

  1. Clone the repo

    git clone https://github.com/ISINerds/multitasking-scheduling-algorithm-simulation-system.git
    
  2. Integrate Raylib and Raygui

      make build_raylib
    

    In case of -bash: ./build.sh: \bin\sh^M: bad interpreter: No such file or directory error run this :

    sed -i -e 's/\r$//' build.sh
    
  3. Compile and build the project

    make build
    
  4. Run the project

    make run
    

How to use

MSASS works based on a configuration file config.conf in which we define attributes like the number of processes, arrival time bounds, runtime bounds, and priority classes. So, you can upadte the attributes values according to your preferences.

The system generates a processes file in the following format : one process per line in this order processName;arrivalTime;runTime;priority

Upon running the project, the interface will be displayed. Use the interface controls to choose a scheduling algorithm from the menu, enter inputs and start the simulation.


Additional information

Makefile commands

  1. The first one serves to integrate Raylib and Raylib libraries into the project, by generating a build_raylib directory.
make build_raylib
  1. This command will compile the source code and store the resultant output in a generated build directory.

    make build
    
  2. This commands will run the project opening the application's interface.

    make run
    
  3. This command can be used if you've added a new scheduliing algorithm or made some changes to existing one. It updates the build to take into consideration new additions and automatically add the new algorithm to the menu.

    make update
    
  4. This command removes all generated executable files and resets the build environment.

    make remove
    

How to contribute

Contributions to improve the multitasking scheduling algorithm simulation system are welcome and greatly appreciated! Here's how you can contribute:

  1. Fork the Repository.
  2. Clone the forked repository.
  3. Create a new branch for your changes (git checkout -b feature/AmazingFeature).
  4. Commit your changes (git commit -m 'Add some AmazingFeature') .
  5. Push your changes to the branch (git push origin feature/AmazingFeature).
  6. Create and submit Pull Request.
  7. Participate in discussions, reviews, and feedback regarding your pull request.

multitasking-scheduling-algorithm-simulation-system's People

Contributors

amine-a11 avatar maha-houidi avatar mehrezbey avatar n3dhir avatar sabermahjoub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

multitasking-scheduling-algorithm-simulation-system's Issues

multilevel fix

maybe you can return either -1, 0, 1
from the comparefunction instead of only 0, 1
just a suggestion
else you should use priority queue of queues :)

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.