StreakPeaked· Practice

ExamsGATETechnical

A scheduling algorithm assigns priority proportional to the waiting time of a process. Every process starts with priority zero (the lowest priority). The scheduler re-evaluates the process priorities every time unit and decides the next process to schedule. Which one of the following is TRUE if the processes have no I/O operations and all arrive at time zero?

  1. This algorithm is equivalent to the first-come-first-serve algorithm.
  2. This algorithm is equivalent to the round-robin algorithm.
  3. This algorithm is equivalent to the shortest-job-first algorithm.
  4. This algorithm is equivalent to the shortest-remaining-time-first algorithm.

Correct answer: This algorithm is equivalent to the first-come-first-serve algorithm.

Solution

The algorithm assigns priorities based on waiting time, which means that processes are scheduled in the order they arrive without preemption, similar to first-come-first-serve. Since all processes start with the same priority and there are no I/O operations, the order of execution remains unchanged, making it equivalent to FCFS.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →