计算机的中断与中断系统
Interrupt is a term used in computing to describe operating system signals. Interrupts are created by different hardware of software in order to inform the CPU for specific events, issues.
Interrupt是计算中用来描述操作系统信号的术语。 中断是由软件的不同硬件创建的,目的是通知CPU特定事件和问题。
什么时候发生中断? (When Interrupt Occurs?)
An interrupt can occur for different causes. Interrupts mainly provide real-time signaling of the CPU and the operating system about different types of events. Below are some of them.
中断可能由于不同的原因发生。 中断主要提供有关不同类型事件的CPU和操作系统的实时信号。 以下是其中一些。
- Requested data arrived from the disk 请求的数据从磁盘到达
- New packets arrived from the network来自网络的新数据包到达
- The key of keyboard pressed按下键盘的键
- Mouse is clicked单击鼠标
中断类型(Interrupt Types)
Interrupts can have different types according to the source type of the interrupt. There are two main interrupt types named Hardware Interrupt and Software Interrupt .
根据中断的源类型,中断可以具有不同的类型。 有两种主要的中断类型,分别是Hardware Interrupt和Software Interrupt 。
Hardware Interruptsare created by the hardware devices or peripherals of the system. General computer hardware like a hard disk drive, network interface card, keyboard, a mouse can regularly create interrupts.
Hardware Interrupts是由系统的硬件设备或外围设备创建的。 诸如硬盘驱动器,网络接口卡,键盘,鼠标之类的通用计算机硬件可以定期创建中断。
Software Interrupts are created by the software running on the Operating System. A driver, word application or web browser can create interrupt.
Software Interrupts是由操作系统上运行的软件创建的。 驱动程序,Word应用程序或Web浏览器可以创建中断。
计算机的中断与中断系统