[理工] 計組效能請教

看板Grad-ProbAsk作者時間15年前 (2009/04/08 18:28), 編輯推噓1(102)
留言3則, 1人參與, 最新討論串1/1
Suppose you wish to run a program P with 7.5x10^9 instructions on a 5GHz machine with a CPI of 0.8. a)What is the expected CPU time? 我算出來是1.2 想請問答案對嗎? b)When you run P, it takes 4 seconds of wall clock time to complete. What is the percentage of the CPU time P received? 請問b小題怎麼算啊? 我不懂它的意思耶 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.170.91.63

04/09 01:34, , 1F
第一題對 第二題就1.2/(1.2+4)
04/09 01:34, 1F

04/09 01:34, , 2F
因為CPU除了執行指令外還會去作別的工作 像是IO之類的
04/09 01:34, 2F

04/09 01:35, , 3F
題目問CPU在執行P時所佔時間的百分比
04/09 01:35, 3F
文章代碼(AID): #19t7neRh (Grad-ProbAsk)