作者numin (nu)
看板Grad-ProbAsk
標題[理工] [計組] 96交大資聯
時間Wed Oct 17 21:41:42 2012
題目:
http://ppt.cc/gE-V
解:
(c)(1).Executing program 1 1600 times on M1 takes 2(1600)=3200 sec
which leaves 400 sec for program2. Hence it will execute 400/5=80 times
(2).Executing program 1 1600 time on M2 takes 1.5(1600)=2400 sec
which leaves 1200 sec for program2.
This program takes 10 sec on M2 so it will execute 1200/10=120 times during
the hour.
Therefore M2 is faster for this workload
問:
1.在算(1)時,2的單位是sec,1600的單位是times/hour,怎麼兩個可以相乘?
2.leaves 400是什麼意思,怎麼知道的?
解:
(d) So far as cost effectiveness we can compare them by $500/80=$6.25 per
iteration/hr for M1,while for M2 we have $800/120=$6.67 per iteration/hr,
so M1 is more cost effective.
問:
1.為什麼是用cost除以在(c)時算的times?
感謝各位耐心看完題目及問題,謝謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.193.221.223
→ BaaaSwin:因為它是用 次數/$$ 10/17 21:53
推 wsx02:(c) 1.轉換成秒數 2.一小時=3600秒, 3600-2*1600=400秒 10/17 22:01
→ wsx02:(d) 題目說performance取決於程式2的throughput 10/17 22:04
→ wsx02:所以C/P值 就等於是cost/(c)的答案 10/17 22:05
→ numin:謝謝B大和w大的回答。 10/17 23:06
→ numin:想請問w大,(c)1.為什麼2(1600)就可以轉成sec?兩個單位怎麼 10/17 23:08
→ numin:消不是都沒有辦法變成sec...? 10/17 23:09
推 wsx02:程式1的Extime=2秒, 程式1每小時執行1600次 10/17 23:23
→ wsx02:所以程式1每小時花3200秒 10/17 23:24
→ numin:感謝w大,我大概懂了,謝謝。 10/18 20:22