Skip to content
Official PYQ · 2026

GATE CS 2026 Set 1 Q54 — CPU Scheduling

Explain with AI
Consider a CPU that has to execute two types of processes. The first type, Actuators (A), requires a CPU burst of 66 seconds. The second type, Controllers (C), requires a CPU burst of 88 seconds. A new process of type A arrives at time t=10t=10, 20,30,4020, 30, 40, and 5050 (in seconds). Similarly, a new process of type C arrives at time t=t= 11,22,33,4411, 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 1010 processes is _______\_\_\_\_\_\_\_. (rounded off to one decimal place)
View worked solution

Answer: 9.5 : 9.5

To find the average waiting time, we trace the execution order of the 10 processes using the First Come First Serve (FCFS) scheduling policy. The CPU burst times are 66 seconds for Actuators (A) and 88 seconds for Controllers (C).

The chronological order of arrivals and execution is detailed below:

Process Arrival Time (tt) Burst Time Start Time Waiting Time (Start −- Arrival)
A1A_1 10 6 10 10−10=010 - 10 = 0
C1C_1 11 8 16 16−11=516 - 11 = 5
A2A_2 20 6 24 24−20=424 - 20 = 4
C2C_2 22 8 30 30−22=830 - 22 = 8
A3A_3 30 6 38 38−30=838 - 30 = 8
C3C_3 33 8 44 44−33=1144 - 33 = 11
A4A_4 40 6 52 52−40=1252 - 40 = 12
C4C_4 44 8 58 58−44=1458 - 44 = 14
A5A_5 50 6 66 66−50=1666 - 50 = 16
C5C_5 55 8 72 72−55=1772 - 55 = 17

Now, we calculate the total waiting time for all 10 processes:

Total Waiting Time=0+5+4+8+8+11+12+14+16+17=95 seconds\text{Total Waiting Time} = 0 + 5 + 4 + 8 + 8 + 11 + 12 + 14 + 16 + 17 = 95 \text{ seconds}

The average waiting time is:

Average Waiting Time=9510=9.5 seconds\text{Average Waiting Time} = \frac{95}{10} = 9.5 \text{ seconds}

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore CPU Scheduling questions