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

Cloud Computing: Threats and Vulnerabilities

Blog banner

EdTech (Education Technology)

Blog banner

BIRYANI ! The history you never knew about

Blog banner

Virtual memory

Blog banner

RAID

Blog banner

Bit Coins

Blog banner

Evolution of Operating Systems

Blog banner

Deadlock in operating system

Blog banner

Firewall in Computer Network

Blog banner

FASHION

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Asana

Blog banner

Explain DBMS in Brief

Blog banner

Electronic Funds Transfer

Blog banner

MUTUAL EXCLUSION

Blog banner

MySQL

Blog banner

SNAPCHAT

Blog banner

File Management system

Blog banner

Challenges of Digital forensics in cloud computing environment

Blog banner

"Mahakali cave"

Blog banner

Pooja Silver

Blog banner

Swiggi

Blog banner

Cybersecurity Standards for Automotive

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

Virtual machine.

Blog banner

MAILFENCE

Blog banner

Lifestyle of a photographer

Blog banner

Advantage of freedom

Blog banner

A book review

Blog banner

Constrains in service design

Blog banner

Cyber Security Standards

Blog banner

In the world of Technology...

Blog banner

Deadlock in operating system

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

Blockchain Security Technique

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

The Five Steps of Data Science

Blog banner

Throttle engine ’Sneak peek into the future’

Blog banner

Memory input output management

Blog banner

Virus

Blog banner