• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » What is Interrupt?

By Abhishek Ghosh May 2, 2024 4:50 pm Updated on May 2, 2024

What is Interrupt?

Advertisement

In computer science, an interrupt is a short-term interruption of the normal execution of a program, in order to process a usually short, but time-critical, process. The triggering event is called an interrupt request (IRQ). After this request, the processor executes an interrupt handler, interrupt service routine, or ISR. The interrupt routine is executed with extended privileges (on appropriate processors). Following the interruption routine, the processor is restored to its previous state (including privilege) and the interrupted program execution is resumed where it was interrupted.

Interrupts (more precisely: hardware interrupts) are triggered by asynchronous external events. Asynchronous in this context means that the running program execution is not always interrupted at the same point. In contrast, in many processors, an interrupt can also be triggered by the running program code itself by means of a machine instruction (“INT nn”) (software interrupt). Effectively, this is more akin to a subroutine call; individual operating systems implement system calls in this way.

The keyboard sends an interrupt request when a key is pressed. To do this, a signal is placed on the bus or directly on a processor pin (IRQ input) intended only for this purpose. The interrupter can then read the character from the keyboard control and forward it to the application.

Advertisement

---

The mouse sends an interrupt request when the axis position of the device is changed or a mouse button is pressed. Two mouse buttons are supported as a hardware interrupt (hardware mouse). Mouse gestures such as double-clicking must be detected by the software, such as an operating system. Additional buttons on a mouse are only supported by appropriate device drivers.

 

Types of Interrupts

 

Interrupts can be classified into several types based on their origin, source, and functionality:

  • Hardware Interrupts: Hardware interrupts are generated by external hardware devices to notify the CPU of events requiring attention, such as I/O (Input/Output) operations, timer expirations, or hardware errors. Examples include keyboard interrupts, mouse interrupts, and disk I/O interrupts.
  • Software Interrupts: Software interrupts, also known as traps or exceptions, are generated by the CPU itself or software processes to invoke specific software routines or handle exceptional conditions. Software interrupts can be triggered by system calls, arithmetic errors, or programmatic instructions such as breakpoints.
  • Maskable Interrupts: Maskable interrupts are interrupts that can be temporarily disabled or masked by the CPU using interrupt masking mechanisms. These interrupts can be prioritized and selectively enabled or disabled based on their importance and urgency.
  • Non-Maskable Interrupts (NMI): Non-Maskable Interrupts are interrupts that cannot be disabled or masked by the CPU and are typically reserved for critical system events such as hardware failures or power loss. NMIs take precedence over other interrupts and require immediate attention from the CPU.
What is Interrupt

 

Purpose of Interrupts

 

An interrupt is used to respond immediately to an input or output (e.g. from a keyboard, hard drive, network, or timer) while another program (such as a user application) is being processed. The interface hardware only needs to trigger an interrupt if the next interface operation is not possible, for example when buffer is empty (output), buffer is full (input), error messages from the interface hardware, or when there is no data transfer event (for example, timer).

Advantages over polling

In addition to interrupts, there is only the technique of programmed (cyclic) querying (polling) to find out the status of input/output devices, processes or other things. While this method is simpler and doesn’t require any additional hardware, it’s much less efficient than working with interrupts because it puts a lot more strain on the CPU. In addition, the speed of response in polling depends on how much time elapses between queries, which can be critical in situations that require an immediate response. In the case of multitasking operating systems, polling is not possible as the sole method.

The standard analogy for interrupts in everyday life is a door with a bell: while you are doing your tasks, you can be interrupted by the bell at any time when a guest wants to “work through” and then turn to him. In the case of polling – i.e. without a bell – you would have to check the door again and again to see if there are visitors or not. When heating milk, on the other hand, it is probably better not to wait for the “interrupt” of boiling over, but to monitor the process regularly.

Application examples

As an example of an application of interrupts, one can imagine a processor that, after giving an order to a hardware component, does not actively wait for its response (polling), but performs other tasks until that hardware component draws its attention to itself again by means of an interrupt. Without interrupts, for example, preemptive (= displacing running programs) multitasking operating systems would be impossible, since without them programs could no longer be interrupted, switched by the operating system (timeshare) and input/output devices could no longer be operated.

Tagged With usual7jw
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is Interrupt?

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • PHP Snippet to Hide AdSense Unit on WordPress 404 Page

    Here is Easy PHP Snippet to Hide AdSense Unit on WordPress 404 Page to Avoid Policy Violation and Decrease False Impression, False Low CTR.

  • Which Wireless Keyboard Mouse For Samsung Smart TV (NU7100 Series) Works?

    Keyboard, Mouse Are Important Tools For Any SmartTV For Full Enjoyment. Which Wireless Keyboard Mouse For Samsung Smart TV (NU7100 Series) Works?

  • Multi-Core Processor Based Computer vs. Multi-CPU Computer

    Multi-Core Processor Based Computer vs. Multi-CPU Computer has differences. For Servers, Workstations the processors are multiple plus multi-core on one board.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy