GATE CS 2024, set 2 · Question 37 · Operating System · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider a single processor system with four processes A, B, C, and D, represented as given below, where for each process the first value is its arrival time, and the second value is its CPU burst time.
A (0, 10), B (2, 6), C (4, 3), and D (6, 7).
Which one of the following options gives the average waiting times when preemptive Shortest Remaining Time First (SRTF) and Non-Preemptive Shortest Job First (NP-SJF) CPU scheduling algorithms are applied to the processes?

  1. (A) SRTF = 6, NP-SJF = 7
  2. (B) SRTF = 6, NP-SJF = 7.5
  3. (C) SRTF = 7, NP-SJF = 7.5
  4. (D) SRTF = 7, NP-SJF = 8.5
Answer

Answer (B)

Answer from the official GATE CS 2024 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes