[理工] OS interrupt

作者: AquaEnergy (Desperate Houseboy)   2015-05-29 23:20:34
1. Which of the following statements are correct for the “interrupts” ?
(a) When an interrupt occurs, the OS transfers control to the corresponding
interrupt service routine (ISR)
(b) The interrupt vector contains the addresses of all the service routines
(c) When an interrupt occurs, the OS preserves the state of the CPU by
storing registers and the program counter (PC)
(d) The codes of ISR for different interrupts are of the same length for
better management
(e) When an interrupt is being processed, the incoming interrupts should be
enabled to prevent a lost interrupt
答案是b, c
想請問a是錯在哪裡呢?
2. 原本的資料路徑是
keyboard
作者: fightforlive (學歷無用論是屁)   2015-05-30 10:15:00
是不是要先查interrupt vector,才去找對應的ISR address然後才執行? 而不是直接執行ISR?DMA就是不需要CPU的參與.我想有buffer只是為了在下次需要時直接看buffer是否存在,然後就可以直接存取了.我也不太清楚...還沒唸OS
作者: jb679123 (straw man)   2015-06-14 22:41:00
1F正解
作者: jackfantasy (jackfantasy)   2015-07-02 23:22:00
請問有大大可以解釋一下e選項的觀念嗎><看得不是很懂

Links booklink

Contact Us: admin [ a t ] ucptt.com