Giter Site home page Giter Site logo

vedanthvnayak / round_robin_scheduling_demo Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 15 KB

Round Robin(RR) scheduling algorithm is mainly designed for time-sharing systems. This algorithm is similar to FCFS scheduling, but in Round Robin(RR) scheduling, preemption is added which enables the system to switch between processes.

C++ 22.98% Java 24.44% Python 19.83% C 32.74%

round_robin_scheduling_demo's Introduction

Round_Robin_Scheduling

Round Robin(RR) scheduling algorithm is mainly designed for time-sharing systems. This algorithm is similar to FCFS scheduling, but in Round Robin(RR) scheduling, preemption is added which enables the system to switch between processes.

Round Robin(RR) scheduling algorithm is mainly designed for time-sharing systems. This algorithm is similar to FCFS scheduling, but in Round Robin(RR) scheduling, preemption is added which enables the system to switch between processes.

1.A fixed time is allotted to each process, called a quantum, for execution.

2.Once a process is executed for the given time period that process is preempted and another process executes for the given time period.

3.Context switching is used to save states of preempted processes.

4.This algorithm is simple and easy to implement and the most important is thing is this algorithm is starvation-free as all processes get a fair share of CPU.

5.It is important to note here that the length of time quantum is generally from 10 to 100 milliseconds in length.

Some important characteristics of the Round Robin(RR) Algorithm are as follows:

1.Round Robin Scheduling algorithm resides under the category of Preemptive Algorithms.

2.This algorithm is one of the oldest, easiest, and fairest algorithm.

3.This Algorithm is a real-time algorithm because it responds to the event within a specific time limit.

4.In this algorithm, the time slice should be the minimum that is assigned to a specific task that needs to be processed. Though it may vary for different operating systems.

5.This is a hybrid model and is clock-driven in nature.

6.This is a widely used scheduling method in the traditional operating system.

Important terms Completion Time It is the time at which any process completes its execution.

Turn Around Time This mainly indicates the time Difference between completion time and arrival time. The Formula to calculate the same is: Turn Around Time = Completion Time โ€“ Arrival Time

Waiting Time(W.T): It Indicates the time Difference between turn around time and burst time. And is calculated as Waiting Time = Turn Around Time โ€“ Burst Time

this repo contain c++,c#,java and python program files for round robin.

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.