Correct option is B
An
interrupt is a signal sent by a peripheral device or a hardware component to the operating system (OS) indicating that it requires immediate attention. Interrupts are used to manage hardware efficiently by allowing the processor to
temporarily pause its current execution and address the request, then return to the original task once the request is handled.
Types of Interrupts:
1.
Hardware Interrupts: Generated by external devices like keyboards, mice, and printers.
2.
Software Interrupts: Generated by programs or the OS to perform system calls.
3.
Maskable Interrupts: Can be ignored or delayed by the processor.
4.
Non-Maskable Interrupts (NMI): Cannot be ignored and are used for critical tasks like hardware failure alerts.
Example:
· When a user presses a key on the keyboard, the
keyboard controller generates an interrupt to notify the OS to process the keypress.
