Interrupting instruction in the middle of execution
问题 Suppose that CPU is running an assembly instruction, say, FOO that will be executed in several clocks (e.g. 10) An interrupt request has come just in the middle of executing FOO and processor needs to interrupt. Does it wait until command is properly executed, or is FOO aborted and will be restarted? Does it behave differently considering different types of interrupts' prioritization? 回答1: The CPU has the option of deciding to do either one, i.e. deciding when the interrupt was handled