[理工] 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