wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Interrupts

profile
Sumit Alu
Jul 12, 2023
1 Like
0 Discussions
161 Reads

What is Interrupt in OS?

An interrupt is a signal emitted by hardware or software when a process or an event needs immediate attention. It alerts the processor to a high-priority process requiring interruption of the current working process. In I/O devices, one of the bus control lines is dedicated for this purpose and is called the Interrupt Service Routine (ISR).

When a device raises an interrupt at the process, the processor first completes the execution of an instruction. Then it loads the Program Counter (PC) with the address of the first instruction of the ISR. Before loading the program counter with the address, the address of the interrupted instruction is moved to a temporary location. Therefore, after handling the interrupt, the processor can continue with the process.

While the processor is handling the interrupts, it must inform the device that its request has been recognized to stop sending the interrupt request signal. Also, saving the registers so that the interrupted process can be restored in the future increases the delay between the time an interrupt is received and the start of the execution of the ISR. This is called Interrupt Latency.

 A single computer can perform only one computer instruction at a time. But, because it can be interrupted, it can manage how programs or sets of instructions will be performed. This is known as multitasking. It allows the user to do many different things simultaneously, and the computer turns to manage the programs that the user starts. Of course, the computer operates at speeds that make it seem like all user tasks are being performed simultaneously.

An operating system usually has some code that is called an interrupt handler. The interrupt handler prioritizes the interrupts and saves them in a queue if more than one is waiting to be handled. The operating system has another little program called a scheduler that figures out which program to control next.


Comments ()


Sign in

Read Next

How Personalised Gifts Create Lasting Memories for Children?

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

Operating System Objectives and Functions

Blog banner

Concept and definition of m-commerce

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

How Harshad Valia International School is nurturing India’s Young Minds?

Blog banner

File Allocation Methods

Blog banner

Mobile Survey

Blog banner

Deadlock and Starvation

Blog banner

Security Issues and Countermeasures

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

Buffering

Blog banner

Install Ubuntu Easily

Blog banner

Why Your Child Cries at Drop-Off and How Preschools Handle It Gently

Blog banner

A Heartfelt Act of Kindness

Blog banner

undefined

Blog banner

Efficiency of SQL Injection Method in Preventing E-Mail Hacking

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Water Resources are about to exhaust...

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

Virtual memory in Operating System

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

Importance Of Blockchain

Blog banner

Service Operations Principles

Blog banner

Not anti-social, but pro-solitude

Blog banner

How to Conquer Depression ?

Blog banner

How User Data Shapes Personalised Campaigns

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

Fudgy Tahini Date Chocolate Bars

Blog banner

Office Lunch Problems in Mumbai and How Tiffin Services Solve Them

Blog banner

Data Security must be your Priority!

Blog banner

Process in OS

Blog banner

Modern Operating system

Blog banner

The Future of Patola Weaving in a Sustainable Fashion World

Blog banner

The Right way of cooking

Blog banner

FRIENDSHIP

Blog banner

PERT Overview

Blog banner

Deadlocks

Blog banner

Deadlock and Starvation

Blog banner

Unlocking Success: Mastering Google Ads Strategies

Blog banner

Operation system

Blog banner