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 and (in seconds). Similarly, a new process of type C arrives at time and (in seconds). The CPU scheduling policy is First Come First Serve (FCFS). The first process of type A starts running at 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 () of each process under FCFS.
Ordering the 10 processes by arrival time (), the CPU stays continuously busy from to :
| Process | Arrival Time (s) | Burst Time (s) | Start Time (s) | Completion Time (s) | Waiting Time (s) |
|---|---|---|---|---|---|
| 10 | 6 | 10 | 16 | ||
| 11 | 8 | 16 | 24 | ||
| 20 | 6 | 24 | 30 | ||
| 22 | 8 | 30 | 38 | ||
| 30 | 6 | 38 | 44 | ||
| 33 | 8 | 44 | 52 | ||
| 40 | 6 | 52 | 58 | ||
| 44 | 8 | 58 | 66 | ||
| 50 | 6 | 66 | 72 | ||
| 55 | 8 | 72 | 80 |
Total waiting time .
Average waiting time .
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.