Question

Consider a CPU that has to execute two types of processes. The first type, Actuators (A), requires a CPU burst of 6 seconds. The second type, Controllers (C), requires a CPU burst of 8 seconds. A new process of type A arrives at time t=10,20,30,40,t = 10, 20, 30, 40, and 5050 (in seconds). Similarly, a new process of type C arrives at time t=11,22,33,44,t = 11, 22, 33, 44, and 5555 (in seconds). The CPU scheduling policy is First Come First Serve (FCFS). The first process of type A starts running at t=10t = 10 seconds. The average waiting time (in seconds) for the 10 processes is ___________. (rounded off to one decimal place)

Official answer and solution
Official answer
9.5
From
Official GATE 2026 answer key

Solution

Order all 10 processes by arrival time and compute the start time, completion time, and waiting time (Start−Arrival\text{Start} - \text{Arrival}) of each process under FCFS.

Ordering the 10 processes by arrival time (A1,C1,A2,C2,A3,C3,A4,C4,A5,C5A_1, C_1, A_2, C_2, A_3, C_3, A_4, C_4, A_5, C_5), the CPU stays continuously busy from t=10 st = 10\text{ s} to t=80 st = 80\text{ s}:

ProcessArrival Time (s)Burst Time (s)Start Time (s)Completion Time (s)Waiting Time (s)
A1A_1106101610−10=010 - 10 = 0
C1C_1118162416−11=516 - 11 = 5
A2A_2206243024−20=424 - 20 = 4
C2C_2228303830−22=830 - 22 = 8
A3A_3306384438−30=838 - 30 = 8
C3C_3338445244−33=1144 - 33 = 11
A4A_4406525852−40=1252 - 40 = 12
C4C_4448586658−44=1458 - 44 = 14
A5A_5506667266−50=1666 - 50 = 16
C5C_5558728072−55=1772 - 55 = 17

Total waiting time =0+5+4+8+8+11+12+14+16+17=95 seconds= 0 + 5 + 4 + 8 + 8 + 11 + 12 + 14 + 16 + 17 = 95\text{ seconds}.

Average waiting time =9510=9.5 seconds= \frac{95}{10} = 9.5\text{ seconds}.

Final answer

9.5

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
Question
64 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.