The Wayback Machine - https://web.archive.org/web/20240813212502/https://www.geeksforgeeks.org/relation-in-fcfs-and-round-robin-scheduling-algorithm/
Open In App

Relation in FCFS and Round Robin Scheduling Algorithm

Last Updated : 18 Sep, 2020
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

In this article, we’ll see how FCFS is special kind of Round Robin Algorithm and Round Robin is special kind of FCFS Algorithm. Also, we will cover the relation with each other. Let’s discuss one by one.

First Come First Serve (FCFS) Scheduling Algorithm :

FCFS is simplest of CPU Scheduling Algorithm which executes process that comes first. It is non-preemptive algorithm. Process that comes in ready queue first gets to be executed by the CPU first, then second one, then third one, and so on. The arrival time of processes is deciding factor here. Ready queue acts like FIFO (First In First Out) queue.

FCFS Scheduling Algorithm with Gantt Chart

Round Robin (RR) Algorithm:

The Round Robin scheduling algorithm is preemptive scheduling algorithm. It uses concept of time slice or time quantum. Process at the beginning of ready queue gets chance to be executed first but only for span of one-time quantum. As new and more processes get added to ready queue, ongoing process gets preempted and gets added to end of ready queue. Next process gets the chance, again for span of one-time quantum. This algorithm is designed for time-sharing systems.
 

Round robin algorithm with time slice = 4

FCFS is a special kind of RR Algorithm :

FCFS with large time quantum acts like an RR algorithm. Imagine an RR algorithm with time slice so large that it is equal or larger than burst time of longest process, then each process will be executed in manner they arrive into the ready queue. There will be no preemption. It will act just like FCFS Algorithm. So, we say that FCFS is special kind of RR algorithm when FCFS has large time quantum.

Note –

Here, we do not say that RR is not special kind of FCFS because FCFS does not support concept of time quantum. RR can be special type of FCFS but it has separate condition that is mentioned below.

RR is special kind of FCFS Algorithm :

In RR, when process is not completely executed within the one-time quantum, it gets preempted and is added again to ready queue with new arrival time. To the ready queue, it is new process being entered. So, RR is executing them one by one as they enter ready queue. No other type of priority is being used here. So, we say that RR is a special kind of FCFS algorithm when job is preempted and rejoins the ready queue with new arrival time.



Similar Reads

Difference between First Come First Served (FCFS) and Round Robin (RR) Scheduling Algorithm
First Come First Served Scheduling Algorithm: First Come First Served (FCFS) is the simplest and non-preemptive scheduling algorithm. In First Come First Served (FCFS), the process is allocated to the CPU in the order of their arrival. A queue data structure is used to implement the FCFS scheduling algorithm. The process which is at the head of the
2 min read
Relation between Preemptive Priority and Round Robin Scheduling Algorithm
In this article, we'll try to establish the relation between Round Robin and Preemptive Priority Scheduling Algorithm. Let's discuss the algorithms one by one first and then establish how Round Robin is a special kind of Preemptive Priority Scheduling Algorithm. Prerequisite - CPU Scheduling | Difference between Priority and Round Robin (RR) Schedu
2 min read
Difference between Priority Scheduling and Round Robin (RR) CPU scheduling
1. Priority Scheduling Algorithm : Priority scheduling algorithm executes the processes depending upon their priority. Each process is allocated a priority and the process with the highest priority is executed first. Priorities can be defined internally as well as externally. Internal priorities are decided by the system depending upon the number o
3 min read
Relation in FCFS and Preemptive Priority Scheduling Algorithm
In this article, we will see how FCFS is a special kind of Priority Preemptive Scheduling Algorithm. Also, we will cover the relation with each other. Let us discuss one by one. 1. First Come First Serve (FCFS) Scheduling Algorithm : FCFS is the simplest of CPU Scheduling Algorithm which executes the process that comes first. It is a non-preemptive
4 min read
Difference between Shortest Job First (SJF) and Round-Robin (RR) scheduling algorithms
1.Shortest Job First (SJF) : Shortest Job First (SJF) Scheduling Algorithm is based upon the burst time of the process. The processes are put into the ready queue based on their burst times. In this algorithm, the process with the least burst time is processed first. The burst time of only those processes is compared that are present or have arrive
3 min read
Difference between Longest Job First (LJF) and Round Robin (RR) scheduling algorithms
1. Longest Job First (LJF) : Longest Job First (LJF) is based upon the burst time of the process. The processes are put into the ready queue based on their burst times. In this algorithm, the process with the largest burst time is processed first. The burst time of only those processes is compared that are present or have arrived until that time. I
3 min read
Difference between Multi Level Queue (MLQ) Scheduling and Round Robin (RR) algorithms
1. Multi Level Queue Scheduling (MLQ) : It is quite difficult to have just one queue and schedule all the processes. This is where multi-level queue scheduling is used. In this the processes are divided into various classes depending upon the property of the processes such as system process, I/O process, etc. Thus we get 'n' number of queues for n
3 min read
Priority to Round-robin scheduling with dynamic time quantum
Prerequisite - Program for Round Robin scheduling Processes are executed on basis of their priority in this scheduling algorithm. Processes have a specific priority associated with them on arrival. When a process arrives its priority is compared with other processes in the ready queue and if its priority is higher then it becomes running process. I
2 min read
Calculate server loads using Round Robin Scheduling
Given M servers that handle multiple requests having infinite computational capability and arrays arrivalTime[] and processTime[] of size N denoting the arrival time and load time of N requests in the following manner: Each server is numbered from 0 to (M - 1) and the requests are given in strictly increasing order of time.Each request i is assigne
14 min read
Find the order of execution of given N processes in Round Robin Scheduling
Given an array arr[] representing burst time of N processes scheduled using the Round Robin Algorithm with given quantum time Q. Assuming that all the process arrive at time t = 0, the task is to find the order in which the process execute. Examples: Input: arr[] = {3, 7, 4}, q = 3Output: 0 2 1Explanation:The order of execution is as follows P0, P1
12 min read
three90RightbarBannerImg