Git Product home page Git Product logo

scheduling-algorithms's Introduction

Scheduling-Algorithms

Overview

This project compares two scheduling algorithms: First-Come-First-Serve (FCFS) and Round-Robin (RR). Scheduling algorithms are crucial in computing for determining the order in which processes are executed by the CPU to optimize various performance metrics.

Both algorithms are tested using the same dataset: a set of 50 processes, each with differing arrival and burst times. The performance of the two algorithms is then evaluated based on four distinct metrics, which help determine the more efficient algorithm:

  1. Total Time Spent Executing All Processes: This measures the cumulative time taken to execute all processes in the queue.

  2. Average Turnaround Time: This is the average time taken for a process to be completed after its arrival. It includes both the waiting time and the time spent executing on the CPU.

  3. Average Waiting Time: This metric calculates the average duration a process spends waiting in the queue before its execution begins.

  4. CPU Efficiency: CPU Efficiency is a measure of how effectively the CPU is utilized during the processing. A higher efficiency indicates that the CPU spends more time executing tasks and less time idle.

Technolgy Required

This project requires the C++ programming language. Additionally, an Integrated Development Environment (IDE) capable of compiling and running C++ code is needed.

Graphical Analysis

Screenshot 2024-01-12 at 12 42 48 AM Screenshot 2024-01-12 at 12 43 10 AM

scheduling-algorithms's People

Contributors

jawadrada avatar kdrome avatar

Watchers

 avatar

Forkers

kdrome

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.