GATE CSE 2026 Session 1 Q64: Average FCFS waiting time for alternating A and C processes
- Operating System
- 2 marks
- NAT
- No negative marking
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 = 10, 20, 30, 40, and 50 (in seconds). Similarly, a new process of type C arrives at time = 11, 22, 33, 44, and 55 (in seconds). The CPU scheduling policy is First Come First Serve (FCFS). The first process of type A starts running at = 10 seconds. The average waiting time (in seconds) for the 10 processes is ___________. (rounded off to one decimal place)
Try it: numerical answer: type the value
Show answer and explanation
Answer: 9.5 (official GATE 2026 final answer key)
Concept used: FCFS: run in arrival order; waiting time = start time − arrival time.
First step: Order by arrival (A10, C11, A20, C22, A30, C33, …) and build the Gantt chart starting at 10 with bursts 6 and 8 alternating.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2026 Session 1 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive
- 2026 Session 2 · Q51Possible output patterns of three processes using two semaphores