作者ceo890710 (Drinking)
看板Grad-ProbAsk
标题[理工] [OS] scheduling
时间Fri Oct 14 22:22:12 2011
恐龙的习题
Consider a system running ten IO-bound tasks and one CPU-bound task.
Assume that the I/O-bound tasks issue an I/O operation once for every
millisecond of CPU computing and that each I/O operation tasks 10
milliseconds to complete.Also assume that the context-switching overhead
is 0.1 millisecond and that all processes are long-running tasks. Describe
the CPU utilization for a round-robin scheduler when:
a. The time quantum is 1 millisecond
b. .. .. .. .. 10 millisecond
不太懂这题的意思 请问怎麽算..
--
※ 发信站 :批踢踢实业坊(ptt.cc)
◆ From: 114.37.178.177
※ 编辑: ceo890710 来自: 114.37.178.177 (10/14 22:24)
1F:推 da0910cc:CPU 1ms->I/O->CPU 1ms->I/O..... 10/15 22:00
2F:推 da0910cc:context switch的时间不算在time quantan内? 10/15 22:03
3F:推 genius945:不算吧,那不是process的cpu burst time,是额外负担 10/15 22:42
4F:→ genius945:抱歉我错了 应该要算.... 10/16 02:13
5F:推 genius945:不对应该不用算,上面精神错乱了= = context switching 10/16 02:20
6F:→ genius945:应该当作OS处理的latency,而不算在process的time quantu 10/16 02:21