Giter VIP home page Giter VIP logo

visual-os-scheduler's Introduction

OS-Scheduler

Operating systems scheduling algorithms visualization. it is an OS scheduler using different scheduling algorithms

Getting Started

These instructions will get you a copy of the project up and running on your local machine for develoment.
pip install requirements.txt
pip install tkinter
python scheduler.py

Requirements

What things you need to install ?

  • matplotlib
  • tkinter
  • numpy

How to use?

NB - you must have an input file contains the process to be scheduled . its format is at docs/document file

  1. Start the program
  2. Choose an input file
  3. Select the algorithm using the scrolling box .
  4. Click on Show/Update Graph .

scheduler module is responsible for generating a schedule for the current processes in the system to specify the CPU usage by these processes. implemented 4 scheduling algorithms:

  1. Non-Preemptive Highest Priority First.(HPF)
  2. First Come First Served. (FCFS)
  3. Round Robin with fixed time quantum.(RR)
  4. Preemptive Shortest Remaining Time Next.(SRTN)

Library used for GUI : Tkinter
Library used for plots : matplotlib
Startup window for selecting (Input file) and (Selecting an algorithm to draw its corresponding scheduling
The following output graphs is for inputfile at (testcases/SheetQuestion.txt)

0 indicates that the cpu is free
-1 indicates that the context switching
Startup window for selecting (Input file) and (Selecting an algorithm to draw its corresponding scheduling

1. First come first served

Startup window for selecting (Input file) and (Selecting an algorithm to draw its corresponding scheduling

2. High priority first

Startup window for selecting (Input file) and (Selecting an algorithm to draw its corresponding scheduling

3. Round Robin

Startup window for selecting (Input file) and (Selecting an algorithm to draw its corresponding scheduling

4. Short remaining time next

Startup window for selecting (Input file) and (Selecting an algorithm to draw its corresponding scheduling

Authors

visual-os-scheduler's People

Contributors

rrrokhtar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

visual-os-scheduler's Issues

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.