GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set2

GATE 2024 set2 · CS · MCQ · 2 marks · Operating System › CPU Scheduling

GATE 2024 set2 Computer Science and Information Technology question: Consider a single processor system with four processes A, B, C, and D, represented as…

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

Show answer

Official answer: B

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion