First in, First out and Round Robin CPU Scheduling

RyanCzarJacobRayray 18 views 9 slides Jun 18, 2024
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

CPU Scheduling


Slide Content

CPU Scheduling Round Robin Armen Bacuteng Ryan Czar Rayray Joshua Roman Reyes Ralph Gylan Asistin Gwen Bustamante Anne Kylie Binong

INTRODUCTION Schedule shows the methods in order assigned to operate on available central processing unit (CPU). Fixed CPU timing Methods or algorithms have been developed. The main objective of these algorithms is. For maximum CPU usage, Average Waiting Time (AWT), Average turnaround time (ATAT), NCS, increase throughput and do their best to be fair to everyone. Some examples of CPU Scheduling are First Come First Serve (FCFS), Preemptive Shortest Job First (PSJF), Round Robin (RR) which are valuable assets of CPU Scheduling.

ROUND ROBIN The Round-robin scheduling algorithm is a kind of preemptive First come, First Serve CPU Scheduling algorithm where each process in the ready state gets the CPU for a fixed time in a cyclic way (turn by turn). It is the oldest scheduling algorithm, which is mainly used for multitasking. The Round robin scheduling algorithm is one of the CPU scheduling algorithms in which every process gets a fixed amount of time quantum  This processing is done in FIFO order which suggests that processes are executed on a first-come, first-serve basis.

ROUND ROBIN Computing the round robin is a clock -driven process, all the processes are added to the ready queue. First, the burst time of every process is compared to the time quantum of the CPU. If the burst time of the process is less than or equal to the time quantum in the round-robin scheduling algorithm, the process is executed to its burst time. If the burst time of the process is greater than the time quantum, the process is executed up to the time quantum (TQ). When the time quantum expires, it checks if the process is executed completely or not.

HOW TO SOLVE ROUND ROBIN? After knowing the time quantum, burst time and arrival time of a certain processes, solve the following: Gantt Chart CPU Efficiency x 100 Throughput Average Waiting Time = Response Time – Arrival Time Average Turn Around Time = Finish Time – Arrival Time   TBT = Total Burst Time TFT = Total Finish Time

Let’s try this! Time Quantum - 2 Process Burst Time Arrival Time P1 1 4 P2 6 P3 2 2 P4 3 4 P5 4 2

Let’s try this! Time Quantum - 2 Process Burst Time Arrival Time P1 1 4 P2 6 P3 2 2 P4 3 4 P5 4 2

Let’s try this! Time Quantum - 4

TOOL USED NETBEANS
Tags