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

ZOHO

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

Article on Fresh Book

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Mesh Topology

Blog banner

The House ??of Patola Designs: Traditional Weaves with a Modern Twist

Blog banner

Theads

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

How Cyber Forensics use in AI

Blog banner

Memory Management

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

Introduction to Virtual Memory - 080

Blog banner

How To Invest in Indian Stock Market For Beginners. ~ Tutorial 2 (NSDL And CSDL) Continued...

Blog banner

Mutual exclusion

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

Pandas Matrix Applications

Blog banner

Decoding Modern Assessment: Why We Look Beyond the Grade Sheet

Blog banner

SESSION HIJACKING

Blog banner

Indian Culture and Tradition

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

Education: Key to your Prosperity

Blog banner

Steganography and Steganalysis

Blog banner

How Unstructured Play Helps Children Become Creative Thinkers

Blog banner

A Tourist’s Guide To Florida’s Rodeo Culture: What To Expect At The Arcadia Championship Rodeo

Blog banner

Mobile Security

Blog banner

Predicting Student Performance with Data Science

Blog banner

EFT

Blog banner

 " Healing of Yoga "

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

MODERN OPERATING SYSTEM

Blog banner

File management

Blog banner

gis substation

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Artical on FreshBooks

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

IT GOVERNANCE

Blog banner

Best password managers: Reviews of the top products

Blog banner

How to kiss

Blog banner

Fault Tolerance

Blog banner

Deadlock

Blog banner

Policies for Service Transition

Blog banner