wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Interrupts

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

Interesting fact about kangaroo.

Blog banner

Memory management

Blog banner

Virtual Machine

Blog banner

Processes : Process description and control

Blog banner

It's all about our Brain.- The Brain Metaphor

Blog banner

Security issues

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Impacts of Data Breach On Companies Challenges and Prevention

Blog banner

A little bit of salt is all the hash needs!

Blog banner

India Digital Personal Data Protection Act, 2023

Blog banner

Deadlock and Starvation

Blog banner

Getting to Kashmir: Alternative to the Jammu-Srinagar highway

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

LINUX

Blog banner

The Sunny Side of Instagram

Blog banner

"Life as a Part-time Student"

Blog banner

ProofHub

Blog banner

A Miracle Toothpaste for Cavity Reversal is a Total Scam

Blog banner

Threads

Blog banner

Lucidchart

Blog banner

MODERN OPERATING SYSTEMS

Blog banner

Memory Management

Blog banner

Cyber Security in Data Breaching

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

Linux Threads:

Blog banner

Gen Z buys by seeing things online, and why you, as a new company, need to be online

Blog banner

1.1 basic elements

Blog banner

ASANA- A Management System.

Blog banner

DBMS and various career options related to it.

Blog banner

Benefits and drawback of web security.

Blog banner

Old age lifestyle

Blog banner

A Complete Guide to Satvik Indian Powder Masalas and Their Everyday Uses

Blog banner

DURGA POOJA

Blog banner

5 People who claimed to have Time Traveled

Blog banner

Multicore CPUs

Blog banner

Cycling

Blog banner

Deadlock in operating system

Blog banner

Veg/Non-veg/Egg Tiffin Meals That Are Nutritious and Filling

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

Social Media Marketing Trends 2022

Blog banner

The Future of Cybersecurity: Trends, Challenges, and Strategies

Blog banner