CPU Process Management Algorithm-Round Robin Algorithm- CPU Scheduling

Digital Classes
3 min readJan 19, 2021

--

Round Robin Algorithm- CPU Scheduling — Operating System

Turn Around Time

It is the time interval from the time of submission of a process to the time of the completion of the process. TAT=Completion Time — Arrival time

Waiting Time:-

The time spent by a process waiting in the ready queue for getting the CPU. Waiting time=Turn Around Time-Burst Time

Example

there are Five processes named as P1, P2, P3, P4,and P5. Their arrival time and burst time are given below in the table. The time quantum of the system is 4 units.
According to algorithm we have to maintain ready queue and gantt chart.

Pywix

Step-1 Initially at t=0,Process will be schedule for time quantum 4 unit. Hence in the ready queue there will be only one process i.e. P1
Ready Queue:-

Gantt Chart:-

Step-2:- After The execution, four more processes P2,P3, P4,and P5 arrives in the ready Queue, since P1 is not completed yet , it needs another 1 unit time hence it will also added back to ready queue.
Ready Queue:-

Gantt Chart:-

Check Complete Article Click Here

Disadvantages

Check Complete Article Click Here

Originally published at https://pywix.blogspot.com.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response