GATE CS 2026 Set 1 | Question 64

Operating Systems › CPU Scheduling · NAT · 2 marks · Answer: 9.5

  1. Question 64Operating Systemsnat2 marks
    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)

    Answer: 9.5

    Solution

    Answer: 9.5 s
    Process | Arrival | Start | Waiting = Start − Arrival
    --------+---------+-------+--------------------------
    A1      | 10      | 10    | 0
    C1      | 11      | 16    | 5
    A2      | 20      | 24    | 4
    C2      | 22      | 30    | 8
    A3      | 30      | 38    | 8
    C3      | 33      | 44    | 11
    A4      | 40      | 52    | 12
    C4      | 44      | 58    | 14
    A5      | 50      | 66    | 16
    C5      | 55      | 72    | 17
            |         | Total | 95
    Average s.
    GATE CS 2026 Set 1 Question 64 solution figure

More GATE PYQ on CPU Scheduling

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2026 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →