retagged by
297 views

1 Answer

2 votes
2 votes
No, waiting time and response time do not remain the same in preemptive scheduling algorithms.

In preemptive scheduling algorithms, a running process can be interrupted and suspended to allow a higher priority process to execute. When the original process resumes, it may have to wait for its turn to execute again. This waiting time will be counted towards the total waiting time for the process.

Similarly, in preemptive scheduling algorithms, the response time for a process is the time from when the process enters the ready queue until it starts its execution. If the process is interrupted and suspended before it can start its execution, the response time will be longer than if it had been allowed to run without interruption.

Therefore, in preemptive scheduling algorithms, the waiting time and response time for a process can vary depending on when it is interrupted and how long it has to wait before it can resume its execution

Related questions

0 votes
0 votes
0 answers
3
roopkathaaa asked Aug 30, 2023
365 views
Let the base priority of a system be 130 and the nice value provided is -10. What is the time slice that the process gets in the O(1) scheduling algorithm?if it should be...
2 votes
2 votes
4 answers
4
go_editor asked Mar 24, 2020
4,571 views
Which of the following scheduling algorithms may cause starvation ?First-come-first-servedRound RobinPriorityShortest process nextShortest remaining time first a, c and e...