Coder Social home page Coder Social logo

priyanshu-lanjewar / cpu-scheduling-algo Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 292 KB

CPU Scheduler Simulator Project

C++ 100.00%
cpu-scheduling-algorithms first-come-first-serve shortest-job-first shortest-remaining-time-first round-robin-scheduler cpp operating-system dos

cpu-scheduling-algo's Introduction

CPU Scheduler Simulator

An application to simulate few CPU scheduling Policies.


Overview

One of the main tasks of an operating system is scheduling processes to run on the CPU. The goal of this programming project is to implement a simulator with different scheduling algorithms. The simulator should select a process to run from the ready queue based on the scheduling algorithm chosen at runtime. (It does not require any actual process creation or execution.)

Algorithms

  • First Come First Serve CPU Scheduling Algorithm
  • Shortest Job First CPU Scheduling Algorithm
  • Shortest Remaining Time First CPU Scheduling Algorithm
  • Round Robin CPU Scheduling Algorithm

Features

  • Creation of Process table (Inputing Details of Process)
  • Performing Algorithm (fcfsm,sjf,srtf,round robin)
  • Computes Completion time, Waiting time, Response time and Turn Around Time for Every Process
  • Computes Average Response time, Averge Waiting time and Average Turn Around Time for all Algorithms.
  • Print Gantt Chart

Header Files

process

header file storing attributes related to process and functions to perform operation on them ID : Process ID AT : Arrival Time BT : Burst Time CT : Completion Time RT : Response Time WT : Waiting Time TAT : Turn Around Time All the required information of other attributes/ functions are explained in comments in code file itself.

fcfs

header file storing attributes related to fcfs and functions to perform fcfs All the required information of other attributes/ functions are explained in comments in code file itself.

sjf

header file storing attributes related to fcfs and functions to perform sjf All the required information of other attributes/ functions are explained in comments in code file itself.

srtf

header file storing attributes related to fcfs and functions to perform srtf All the required information of other attributes/ functions are explained in comments in code file itself.

roundrobin

header file storing attributes related to fcfs and functions to perform roundrobin All the required information of other attributes/ functions are explained in comments in code file itself.

gcp

To print gantt chart All the required information of other attributes/ functions are explained in comments in code file itself.

cpuschalgo

Single header to bind all above headers together

createprocesstable

GUI Components + backend for creating Process Table

simulator

GUI Components + backend for Final Result

gui

GUI Components + backend for GUI Entry Point

climode

CLI Mode Entry Point

cpu-scheduling-algo's People

Contributors

priyanshu-lanjewar avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.