diff --git a/Chapter-7/README.md b/Chapter-7/README.md index 12387f3..e1719b1 100644 --- a/Chapter-7/README.md +++ b/Chapter-7/README.md @@ -4,13 +4,13 @@ An interrupt is a signal to the processor emitted by hardware or software indica There are 3 types of interrupts: -- **Hardware interrupts:** are sent to the processor from an external device (keyboard, mouse, hard disk, ...). Hardware interrupts were introduced as a way to reduce wasting the processor's valuable time in polling loops, waiting for external events. -- **Software interrupts:** are initiated voluntarily by the software. It's used to manage system calls. +- **Hardware interrupts:** are sent to the processor from an external device (keyboard, mouse, hard disk, ...). Hardware interrupts were introduced as a way to reduce wasting the processor's valuable time in polling loops and waiting for external events. +- **Software interrupts:** are initiated voluntarily by the software. These are used to manage system calls. - **Exceptions:** are used for errors or events occurring during program execution that are exceptional enough that they cannot be handled within the program itself (division by zero, page fault, ...) #### The keyboard example: -When the user pressed a key on the keyboard, the keyboard controller will signal an interrupt to the Interrupt Controller. If the interrupt is not masked, the controller will signal the interrupt to the processor, the processor will execute a routine to manage the interrupt (key pressed or key released), this routine could, for example, get the pressed key from the keyboard controller and print the key to the screen. Once the character processing routine is completed, the interrupted job can be resumed. +When the user pressed a key on the keyboard, the keyboard controller will signal an interrupt to the Interrupt Controller. If the interrupt is not masked, the controller will signal the interrupt to the processor, the processor will execute a routine to manage the interrupt (key pressed or key released), this routine could, for example, get the pressed key from the keyboard controller and print the key to the screen. Once the character processing routine is completed, the interrupted job may resume. #### What is the PIC?