A scheduling algorithm assigns priority proportional to the waiting ti...
The scheduling algorithm works as round robin with quantum time equals to T. After a process's turn comes and it has executed for T units, its waiting time becomes least and its turn comes again after every other process has got the token for T units.
View all questions of this test
A scheduling algorithm assigns priority proportional to the waiting ti...
The answer is b because if same priority task come then the scheduler in other cases cannot decides who should be served first .. So the common solution is that to serve both the task at the same time for the equall amount of processor..
A scheduling algorithm assigns priority proportional to the waiting ti...
Answer:
The given scheduling algorithm assigns priority to each process based on its waiting time. The longer a process waits, the higher its priority becomes. The scheduler re-evaluates the priorities of all processes at regular intervals of T time units.
To understand why this algorithm is equivalent to the round-robin algorithm, let's first understand the round-robin algorithm.
Round-Robin Algorithm:
The round-robin algorithm is a preemptive scheduling algorithm that assigns a fixed time quantum to each process in a cyclic manner. The scheduler selects the next process to execute based on its priority and executes it for a fixed time quantum. If the process is not completed within the time quantum, it is preempted and moved to the end of the queue.
Now, let's analyze the given scheduling algorithm and compare it with the round-robin algorithm.
1. Priority Assignment:
In the given scheduling algorithm, priority is assigned based on the waiting time of a process. The longer a process waits, the higher its priority becomes. This is similar to the round-robin algorithm, where priority is not explicitly assigned, but the order of execution is determined by the position of the process in the ready queue.
2. Re-evaluation of Priorities:
The given scheduling algorithm re-evaluates the priorities of all processes every T time units. This is similar to the round-robin algorithm, where after executing a process for a fixed time quantum, the scheduler re-evaluates the priorities of all processes and selects the next process to execute based on its priority.
3. No I/O Operations and All Processes Arrive at Time Zero:
The given scheduling algorithm assumes that there are no I/O operations and all processes arrive at time zero. This is also true for the round-robin algorithm, which assumes that there are no I/O operations and all processes are ready to execute from the beginning.
Conclusion:
Based on the above analysis, we can conclude that the given scheduling algorithm is equivalent to the round-robin algorithm. Both algorithms assign priority to processes based on their waiting time, re-evaluate priorities at regular intervals, and assume no I/O operations with all processes arriving at time zero.
To make sure you are not studying endlessly, EduRev has designed Computer Science Engineering (CSE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Computer Science Engineering (CSE).