FCFS CPU Scheduling

FCFS CPU Scheduling :

  • In FCFS CPU Scheduling (First Come First Serve), process which requests the CPU first, is allocated CPU first.
  • It is the simplest scheduling algorithm.
  • Processes are dispatched according to their arrival time on the ready queue.
  • It is non-preemptive
  • Once the CPU has been allocated to a process, that process keeps the CPU and CPU cannot be allocated to another process, until it releases CPU either by terminating or requesting I/O.
  • One of the major drawback of this scheme is that the average time is often quite long.

C SOURCE CODE :

OUTPUT :
 
FCFS scheduling
 

Leave a Reply

Your email address will not be published. Required fields are marked *