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

Discussion

Whenever CPU detects an interrupt, what it do with current state ?

  • A.Save it
  • B.Discard it
  • C.Depends system to system
  • D.
    First finish it

Answer: A

Correct answer: Save it

Before servicing an interrupt the CPU saves its current state - the program counter and the registers - so that when the service routine finishes it can resume the interrupted program exactly where it left off. Discarding the state would make return impossible, and finishing the current program first would defeat the purpose of interrupting.

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

Post your comment

Please log in or register to post a comment.