wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Interrupts

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

Having passion in life

Blog banner

INTERNET SECURITY

Blog banner

Development Of Modern Operating System

Blog banner

Deadlock and Starvation

Blog banner

Deadlock and starvation

Blog banner

Deadlock

Blog banner

Consumer to consumer business mode

Blog banner

Security issues

Blog banner

Google classroom

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

Blog name

Blog banner

Evolution of Operating system

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

TEAMWORK

Blog banner

Types of threads

Blog banner

How to write a cover letter

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

"Audit" In Data Science

Blog banner

What is time ? The term which has astonished Scientists

Blog banner

Gis in agriculture and farming

Blog banner

5 Common Faults In Construction Tenders

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

Getting to Kashmir: Alternative to the Jammu-Srinagar highway

Blog banner

Therapy Myths That Need to End in 2025

Blog banner

Deadlocks in Operating Systems

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

I/O Buffering

Blog banner

LiquidPlanner

Blog banner

RAID

Blog banner

Health and fitness

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

Memory Management

Blog banner

Assignment 2

Blog banner

Guidelines for a Low sodium Diet.

Blog banner

Uniprocessor Scheduling

Blog banner

Threads in OS

Blog banner

GOOGLE

Blog banner

Concurrency and memory

Blog banner

Memory Management

Blog banner

MODERN OPERATING SYSTEM

Blog banner

MORDERN UNIX SYSTEM

Blog banner