linux - In a multilevel queue scheduler, will higher priority processes preempt already-running lower priority ones? - Stack Ove

Lets say we have two queues: priority 1 with Round Robin and priority 2 with Shortest Remaining Time Fi

Lets say we have two queues: priority 1 with Round Robin and priority 2 with Shortest Remaining Time First.

At time 0, process A with a 10 units CPU burst is in SRTF queue. It starts excecuting, and at time 2, process B with 12 units CPU burst arrives at RR queue.

When process B arrives at RR, it is a higher priority process than the currently executing process A. Does the scheduler let process A run its remaining burst, or does it preempt it to run process B?

Silberchaltz's Operating Systems Concepts states that "A process that arrives in queue 1 will preempt a process in queue 2" but I don't clearly understand if it means it can preempt a process in the middle of execution or only if it's sitting in the queue.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745594400a4635021.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信