看板 Grad-ProbAsk 關於我們 聯絡資訊
If we want the lowest latency for an I/O operation to a single I/O device, the order is polling, DMA and interrupt driven. Ans: True 想請問的是為什麼一次DMA的一次IO的latency會比interrupt來的短 ? 麻煩版上大大幫解惑 thanks. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 119.14.77.145
Numbstu:想想那個流程 在DMA一次處理IO的過程中 並非全程需求CPU 01/04 14:17
Numbstu:但interrupt呢? 卻要跑IHR 甚至在那之前os還得驗證 01/04 14:17
Numbstu:所謂的latency是針對cpu來討論 01/04 14:18
cutemiller:簡單講法,interrupt 是泡咖啡機,interrupt 是瑪麗亞 01/04 17:29
cutemiller:瑪莉亞泡好咖啡送到你前面,咖啡機你還要走去拿咖啡 01/04 17:30
cutemiller:你就是 cpu...你想哪個對你來說花比較少時間 01/04 17:31
cutemiller:洪逸上課講的...XD..很好記 01/04 17:31
jerrywings:interrupt是咖啡機也是瑪麗亞? 01/05 06:23
jerrywings:不太懂比喻 01/05 06:25
BuliBuchi:DMA是馬麗亞才對 01/05 13:07
icehead:#1GjZZALx 這篇的推文也有三個方法的例子 01/05 16:29
icehead:感謝以上大大幫忙 :) 01/05 16:29