wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Interrupts

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

The khan mehtab transforming the modular switches company

Blog banner

ADD A SPICE TO YOUR LIFE.

Blog banner

MAJOR ACHIEVEMENTS OF OS

Blog banner

Process State

Blog banner

Self managing devices

Blog banner

Vulnerability Assessment

Blog banner

Bulk E-mail software

Blog banner

The Chapped Lips and Dry Mouth Trap: The Sneaky Reason Cavities Spike in Winter

Blog banner

Explain DBMS in Brief

Blog banner

Defining youtubr

Blog banner

Never give up

Blog banner

Secure Hypertext transfer protocol

Blog banner

Top Career Paths After a B.Com Degree in Mumbai: What’s Next for You?

Blog banner

Deadlock

Blog banner

How To Secure Operating Systems ?

Blog banner

Latest Email Marketing Techniques

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Operating system

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Deadlock and Starvation

Blog banner

Threads

Blog banner

What is Virtual Memory

Blog banner

Bots and Cyber Security

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

The Rise of Polo Tourism in the USA: How Travellers Are Blending Luxury Stays with Elite Sports

Blog banner

FIREWALL

Blog banner

Coping with Diagnosis Shock

Blog banner

Education: Key to your Prosperity

Blog banner

Smartphone Security: Vulnerabilities and Attacks

Blog banner

Health and fitness in technology

Blog banner

MOBILE DEVICE FORENSIC

Blog banner

CyberSecurity Color Wheel

Blog banner

Rock, Paper, Scissors Game in Common Lisp

Blog banner

Buffer Overflow

Blog banner

MySQL

Blog banner

Direct Memory Access

Blog banner

Zero-Click Searches: How To Stay Visible In Google’s New Era

Blog banner

Health and fitness

Blog banner

Importance of education

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner