What is the difference between Trap and Interrupt?

后端 未结 10 1079
时光说笑
时光说笑 2020-12-02 03:44

What is the difference between Trap and Interrupt?

If the terminology is different for different systems, then what do they mean on x86?

10条回答
  •  一个人的身影
    2020-12-02 03:54

    I think Traps are caused by the execution of current instruction and thus they are called as synchronous events. where as interrupts are caused by an independent instruction that is running in the processor which are related to external events and thus are known as asynchronous ones.

提交回复
热议问题