Skip to content
Exercise 8 · Q3
Q.

The processes P1, P2, P3, P4 given in the table below, arrives for execution in the same order, with Arrival Time 0, and given Burst Time, find the average waiting time using the FCFS scheduling algorithm.

ProcessBurst Time
P120
P25
P38
P444
Dnh Dd CbseNCERTSubjective· 3mImportance★★★★★est
58% · 62/106 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Under FCFS the processes run in arrival order P1→P2→P3→P4, giving waiting times 0,20,25,330,20,25,33 and an average of 19.519.5 units.

For First-Come-First-Served (FCFS), each process waits for all processes ahead of it to finish.

Waiting Time of Pi=Start Time of Pi−Arrival Time of Pi\text{Waiting Time of }P_i = \text{Start Time of }P_i - \text{Arrival Time of }P_i

Average Waiting Time=1n∑i=1nWTi\text{Average Waiting Time} = \frac{1}{n}\sum_{i=1}^{n}\text{WT}_i

where nn = number of processes. All arrival times are 00, so a process's waiting time equals the sum of the burst times before it.

  1. Execution order (FCFS = order of arrival): P1(20)→P2(5)→P3(8)→P4(44)P_1(20)\to P_2(5)\to P_3(8)\to P_4(44).
  2. Gantt / start times (all arrive at t=0t=0):
ProcessBurstStartCompletion
P120020
P252025
P382533
P4443377

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.