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时间一样,只讨论频率