What is the difference between Trap and Interrupt?

后端 未结 10 1077
时光说笑
时光说笑 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 04:09

    A trap is a special kind of interrupt which is commonly referred to as a software interrupt. An interrupt is a more general term which covers both hardware interrupts (interrupts from hardware devices) and software interrupts (interrupts from software, such as traps).

提交回复
热议问题