作者nypgand1 (祈附‧征前御祭)
看板Grad-ProbAsk
標題[理工] [計組]-台大97-資工
時間Sun Jan 2 14:48:41 2011
http://www.lib.ntu.edu.tw/exam/graduate/97/97419.pdf
第二題的(d)小題
張凡的解答寫
(100-x)/(0.5*8) = x
請問這個式子要怎麼解釋??
爬文之後發現問題似乎是出在這一句敘述
for an 8-processor run, 50% of time a processor has to stall
because the processor is waiting to access the disk
我自己的解釋是這樣
(run_CPU_time + I/O_time) = 100
I/O_time = x
total_CPU_time = run_CPU_time_8pro + stall_CPU_time
stall_CPU_time = 50%*total_CPU_time = run_CPU_time_8pro
total_CPU_time = run_CPU_time_8pro/(0.5)
run_CPU_time = 100-x
run_CPU_time_8pro = (100-x)/8
total_CPU_time = (100-x)/(0.5*8)
如果是這樣
那題目中有哪一句提到total_CPU_time = I/O_time 呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.96
推 tetragramm:你爬文的那句話不就說了嗎!? 01/02 16:01
→ nypgand1:我的50%是用在 stall_CPU_time = 50%*total_CPU_time 01/02 16:08
→ nypgand1:如果題目的意思是total_CPU_time = I/O_time 01/02 16:09
→ nypgand1:那(100-x)/(0.5*8)=x 左式除的0.5就需要另外的解釋了 01/02 16:10