CPU Scheduling Algorithms

Process Table

Process ID Arrival Time Burst Time Waiting Time Turnaround Time Actions
P1 - -
P2 - -
P3 - -

Average Waiting Time

-

Average Turnaround Time

-

Algorithm Explanation

First-Come, First-Served (FCFS)

FCFS is the simplest CPU scheduling algorithm where processes are executed in the order they arrive in the ready queue. It is a non-preemptive algorithm.

  • Processes are executed in the order they arrive
  • Non-preemptive: once a process starts executing, it continues until it completes
  • Simple to implement but can lead to the "convoy effect" where short processes wait for long processes to complete