GATE CS 2025 Set 1 | Question 38

Operating Systems › CPU Scheduling · MCQ · 2 marks · Answer: A

  1. Question 38Operating Systemsmcq2 marks
    A computer has two processors, and . Four processes with CPU bursts of 20, 16, 25, and 10 ms, respectively, arrive at the same time and are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities: - : (so highest, lowest). - : (so highest, lowest). A process is scheduled on a free processor if no higher-priority process is waiting. A process can go to any free processor without violating priority rules. Ignore context-switch time. What is the average waiting time (ms)?
    • A.
      9.00
      ✓
    • B.
      8.75
    • C.
      6.50
    • D.
      7.50

    Answer: A

    Solution

    Answer: (A) 9.00 At both processors are free: - picks its highest-priority process (burst 20) → runs . - picks its highest-priority process (burst 16) → runs . At , frees. Remaining ; by 's order , so (burst 25) → runs . At , frees. Only left → (burst 10) → runs . Waiting times (start arrival): .

More GATE PYQ on CPU Scheduling

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2025 Set 1 in real GATE exam mode

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

Create free account →