GATE CS 2025, set 1 · Question 38 · Operating System · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
A computer has two processors, M₁ and M₂. Four processes P₁, P₂, P₃, P₄ 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:
M₁ uses priority of execution for the processes as, P₁ > P₃ > P₂ > P₄, i.e., P₁ and P₄ have highest and lowest priorities, respectively.
M₂ uses priority of execution for the processes as, P₂ > P₃ > P₄ > P₁, i.e., P₂ and P₁ have highest and lowest priorities, respectively.
A process Pᵢ is scheduled to a processor Mₖ, if the processor is free and no other process Pⱼ 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?
- (A) 9.00
- (B) 8.75
- (C) 6.50
- (D) 7.50
Answer
Answer (A)
Answer from the official GATE CS 2025 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes