

The average waiting time under the FCFS policy is often quite long. The running process is then removed from the queue.įCFS scheduling is the simplest scheduling algorithm, but it can cause short processes waiting time to be very HIGH. When the CPU is free, it is allocated to the process at the head of the queue. When a process enters the ready queue, its PCB (Process Control Block) is linked onto the tail of the queue. Queue stores all the processes that want to be executed. The implementation is easily managed with FIFO (First In First Out) queue. With this scheme, the process that requests the CPU first is allocated the CPU first.

There are the following three variants of Round Robin algorithm:īefore moving to the example, first we will understand the various time related to a process used in Round Robin algorithm. The algorithm is best suited for time sharing system. The objective of the algorithm is to maximize the CPU utilization. Context switching is used to save states of preempted processes. Once a process is executed for a given time period, it is preempted and other process executes for a given time period. The fixed time is called the time quantum or time slot or time stamp or time slice. Each process is provided a fix time to execute in cyclic way. Round Robin scheduling is the preemptive process scheduling algorithm. In this section, we will discuss the round robin scheduling algorithm and its implementation in a Java program. It is closely similar to FCFS scheduling.


It is also known as time slicing scheduling algorithm. It is especially designed for time sharing system. Round Robin (RR) algorithm is a CPU scheduling algorithm. Next → ← prev Round Robin Scheduling Program in Java
