C program for solving round-robin (with arrival time)
The round-robin (RR) the scheduling algorithm is designed especially for time-sharing systems. It is similar to FCFS scheduling, but
pre-preemption is added to switch between processes. A small unit of time,
called a time quantum or time slice, is defined. A time quantum is generally from 10
to 100 milliseconds. The ready queue is treated as a circular
queue.
or
It is one of the oldest, simplest, and fairest and
most widely used scheduling algorithms, designed especially for time-sharing
systems. A small unit of time, called time-slice or quantum, is
defined. All runnable processes are kept in a circular queue. The CPU scheduler
goes around this queue, allocating the CPU to each process for a time interval
of one quantum. New processes are added to the tail of the queue.
CPU : Central Processing Unit
Program:
output:
Burst Time is actually time that is required to complete the execution of a particular task or process.
Comments