[理工] [計組] disk delay trapping to OS

看板Grad-ProbAsk作者 (無法顯示)時間13年前 (2011/07/22 21:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
in order to perform a disk or network access, it is typically necessary for the user to have the OS communicate with the disk or network controllers. suppose that in a particular 5 GHz computer, it takes 10,000 cycles to trap to the OS, 20 ms for the OS to perform a disk access, and 25us for the OS to perform a network access. in a disk access, what percentage of the delay time is spent in trapping to the OS? how about in a network access? ========================= disk access total time: 10,000/500,000,000 s + 20ms = 20.002 ms % delay trapping to OS: 0.01% network access total time: 10,000/5,000,000,000s + 25us = 27us % delay trapping to OS: 7.4% 請問黃字是怎麼算出來的? 張凡337頁 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.28.232
文章代碼(AID): #1EANLPc2 (Grad-ProbAsk)
文章代碼(AID): #1EANLPc2 (Grad-ProbAsk)