Machine-translated by Google. Questions are authored in English.
Top

Discussion

A CPU generally handles an interrupt by executing an interrupt service routine

  • A.as soon as an interrupt is raised
  • B.by checking the interrupt register at the end of fetch cycle
  • C.by checking the interrupt register after finishing the executing the current instruction
  • D.by checking the interrupt register at fixed time intervals

Answer: C

A CPU does not break off an instruction in the middle. It checks for pending interrupts at the end of the current instruction, and then runs the interrupt service routine. So it handles an interrupt by checking the interrupt register after finishing the execution of the current instruction, option (C). Acting as soon as the interrupt is raised would split the instruction, checking only at the end of the fetch cycle is too early, and checking at fixed time intervals is polling, not the usual hardware mechanism.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.