[理工] [OS] 100清大資工 scheduling
Choose the correct answer. Consider the following preemptive priority
scheduling algorithm 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 α
when it is running, its priority changes at a rate ß. AlI pracesses are
given a
priority 0 when they enter the ready queue. What is the algorithm that
results from ß > α > 0?
A. Non-preemptive SJF
B. Preemptive SJF.
C. FCFS
D. Non-preemptive priority
E. Multilevel feedback queue
F. None of the above
我是這樣解讀的:剛進ready queue的時候priority是0,輪到執行
的時候變成ß,被強取後變成α。
我是選CD,可是找不到哪裡有答案,有誰知道嗎?
疑惑有兩個:
1.題目一開始說 preemptive priority scheduling,可是又給出ß > α > 0,
我覺得ß > α > 0不就表示他是Non-preemptive priority scheduling,
有點矛盾。
2.priority到底是什麼情況下會變成α?好像沒機會的感覺。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.116.225.176
→
01/11 01:31, , 1F
01/11 01:31, 1F
→
01/11 01:33, , 2F
01/11 01:33, 2F
→
01/11 02:03, , 3F
01/11 02:03, 3F
→
01/11 02:17, , 4F
01/11 02:17, 4F
→
01/11 02:18, , 5F
01/11 02:18, 5F
※ 編輯: worldxxi 來自: 118.160.84.236 (01/11 02:33)
→
01/11 03:14, , 6F
01/11 03:14, 6F
推
01/11 07:51, , 7F
01/11 07:51, 7F
→
01/11 09:26, , 8F
01/11 09:26, 8F
→
01/11 13:32, , 9F
01/11 13:32, 9F
→
01/11 13:32, , 10F
01/11 13:32, 10F
→
01/11 13:33, , 11F
01/11 13:33, 11F
→
01/11 13:33, , 12F
01/11 13:33, 12F
→
01/11 13:34, , 13F
01/11 13:34, 13F
→
01/11 13:48, , 14F
01/11 13:48, 14F
推
01/13 19:29, , 15F
01/13 19:29, 15F
→
01/13 19:29, , 16F
01/13 19:29, 16F
→
01/15 22:07, , 17F
01/15 22:07, 17F
→
09/11 14:45, , 18F
09/11 14:45, 18F