---
title: "What are maskable and non-maskable interrupts? Explain with examples."  
description: "What are maskable and non-maskable interrupts? Explain with examples."  
author: "Krishnapriya Rajeev"  
published: 2023-04-27  
updated: 2023-04-27  
canonical: https://www.mindstick.com/forum/158044/what-are-maskable-and-non-maskable-interrupts-explain-with-examples  
category: "microprocessor"  
tags: ["microprocessor"]  
reading_time: 2 minutes  

---

# What are maskable and non-maskable interrupts? Explain with examples.

What are maskable and non-maskable interrupts? [Explain](https://www.mindstick.com/forum/157854/what-is-system-debugging-explain-some-system-debugging-tools-used-in-modern-computer-systems) with examples.

## Replies

### Reply by Krishnapriya Rajeev

In computing, an interrupt is a signal sent to the processor indicating that some event or condition has occurred that requires immediate attention from the CPU. Interrupts are used to handle asynchronous events and to provide multitasking capabilities to the system.

There are two types of interrupts: maskable and non-maskable interrupts.

1. Maskable Interrupts: Maskable interrupts are interrupts that can be disabled or "masked" by the processor. When a maskable interrupt occurs, the processor checks whether the interrupt mask is set, and if it is, the interrupt is ignored. If the interrupt mask is not set, the processor saves its current state and jumps to the interrupt handler, which is a special routine that handles the interrupt.

Examples of maskable interrupts include keyboard interrupts, timer interrupts, and I/O interrupts. These interrupts can be disabled or re-enabled by the software, depending on the system requirements.

2. Non-Maskable Interrupts: Non-maskable interrupts are interrupts that cannot be disabled or "masked" by the processor. When a non-maskable interrupt occurs, the processor must immediately stop its current operation and jump to the interrupt handler, without checking the interrupt mask.

Examples of non-maskable interrupts include hardware faults, power failures, and system resets. These interrupts are used to signal critical events that require immediate attention and cannot be ignored.

In summary, maskable interrupts can be controlled by the software, while non-maskable interrupts are always prioritized and cannot be ignored.


---

Original Source: https://www.mindstick.com/forum/158044/what-are-maskable-and-non-maskable-interrupts-explain-with-examples

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
