wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Interrupts

profile
Sumit Alu
Jul 12, 2023
1 Like
0 Discussions
157 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

Health and fitness in technology

Blog banner

Rapido

Blog banner

Consumer to consumer business mode

Blog banner

Data Mining

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

Uniprocessor Scheduling

Blog banner

Memory management

Blog banner

A BLOG ON MYSQL

Blog banner

12 Principles of Animation

Blog banner

DNS Cache

Blog banner

Sniffing: A Cyber Security Threat

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

Indian Food

Blog banner

Understanding Mobile Device Forensics

Blog banner

Virus

Blog banner

Cyber Forensics

Blog banner

ACHIEVEMENTS IN OPERATING SYSTEMS

Blog banner

Deadlock

Blog banner

ASANA- A Management System.

Blog banner

Carrot Pickle With Raisins (lagan Nu Achar)

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Jira Software

Blog banner

Memory management

Blog banner

Life of a 2020-2021 student

Blog banner

To-Do List In LISP

Blog banner

Optimization of operating system design

Blog banner

Game Theory in Blockchain

Blog banner

Deadlocks in operating system

Blog banner

Uniprocessor Scheduling

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

A Short History of GIS

Blog banner

Sage

Blog banner

Operating Systems

Blog banner

Image Steganography: Hiding Secrets in Plain Sight

Blog banner

Article on Zoho Corporation

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

E-commerce

Blog banner

This too shall pass

Blog banner

Python as a tool for data analysis

Blog banner

Hypothesis Testing in Data Science

Blog banner

The seven-step improvement process

Blog banner

Memory management

Blog banner