[理工] [OS] CPU scheduling
Consider the following preemptive priority-scheduling algorithn
based on dynamically changing priorities.
Larger priority numbers imply higher priority. When a process is waiting
for the CPU(in the ready queue,but not running),its priority changes at
a rate A;when it is running,its priority changes at a rate B.
All processes are given a priority of 0 when they enter the ready queue.
The parameters A and B can be to give many different scheduling Algorithms.
(a) What is the algorithm that result from B > A > 0.
(b) What is the algorithm that result from A < B < 0.
我知道答案(a)LIFO
(b)FCFS
但我不明白為什麼是這樣
照題目給的 B的 優先權值應該會恆大於A
所以兩個都解釋成FCFS也行的通吧
難道是我誤會了什麼嗎?
有請大大解答
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.27.133.68
推
03/10 18:16, , 1F
03/10 18:16, 1F
→
03/10 18:47, , 2F
03/10 18:47, 2F
推
03/10 18:50, , 3F
03/10 18:50, 3F
推
03/10 19:01, , 4F
03/10 19:01, 4F
推
03/10 19:26, , 5F
03/10 19:26, 5F
→
03/10 19:26, , 6F
03/10 19:26, 6F
→
03/10 19:26, , 7F
03/10 19:26, 7F
→
03/10 19:27, , 8F
03/10 19:27, 8F
→
03/10 23:15, , 9F
03/10 23:15, 9F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 4 篇):