Discuss how the following pairs of scheduling criteria conflict in certain
settings.
(a) CPU utilization and response time
官方解答說:
"CPU utilization is increased if the overheads associatedwith context switching isminimized. The context switching
overheads could be lowered by performing context switches infrequently. This
could, however, result in increasing the response time for processes."
我知道context switch減少,CPU utilization會上升;
但不懂為何context switch減少會導致response time變長?
context switch減少,resonse time不是也會減少嗎?
作者: krusnoopy (push) 2017-04-15 12:09:00
假設P1,P2,P3同時到,1ms跟2ms做一次context switching當然後者的utilization高,但response time長囉你可能以為是降低context swithing的時間吧但是題目假設context switching時間一樣,只討論頻率