GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2025 set1

GATE 2025 set1 · CS · MCQ · 2 marks · Operating System › CPU Scheduling

GATE 2025 set1 Computer Science and Information Technology question: A computer has two processors, M 1 and M 2. Four processes P 1, P 2, P 3, P 4 with CPU…

A computer has two processors, and . Four processes with CPU bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows:

  • uses priority of execution for the processes as, , i.e., and have highest and lowest priorities, respectively.
  • uses priority of execution for the processes as, , i.e., and have highest and lowest priorities, respectively.

A process is scheduled to a processor , if the processor is free and no other process is waiting with higher priority. At any given point of time, a process can be allocated to any one of the free processors without violating the execution priority rules. Ignore the context switch time. What will be the average waiting time of the processes in milliseconds?

  1. (A)

    9.00

  2. (B)

    8.75

  3. (C)

    6.50

  4. (D)

    7.50

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion