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

Google classroom

Blog banner

Policies for Service Transition

Blog banner

MPL and how its effects?

Blog banner

How the mobile IP is used in GSM architecture.

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

Processing Crime and Incident Scenes

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

VIRTUAL MACHINES

Blog banner

From Airboat Tours to Fossil Hunting: The Ultimate Arcadia Travel Experience

Blog banner

Capacity management in ITSM

Blog banner

Multiprocessor and Multicore Organization

Blog banner

How HRMS, Task Management, and Team Chats Can Improve Workplace Productivity

Blog banner

MEMORY MANAGEMENT REQUIREMENT

Blog banner

Data Lake

Blog banner

'C', 'C++' and 'Java': Head-to-Head

Blog banner

KPMG (Klynveld Peat Marwick Goerdeler)

Blog banner

How Preschools Help Children Make Their First Friends

Blog banner

TRELLO

Blog banner

Memory

Blog banner

WAKE UP ITS FOOD o'CLOCK...!!!!!

Blog banner

Caching windows

Blog banner

Gamer life

Blog banner

RACI model in IT services

Blog banner

Why we should do reading

Blog banner

Booting Process In Operating System

Blog banner

The Dark Web: A Breeding Ground for Cybercriminals – How to Guard Against Threats

Blog banner

Teamwork

Blog banner

How Cyber Forensics help prevent Crimes

Blog banner

Linux -V Server Virtual Machine

Blog banner

Evolution of Operating system

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

BEAUTY IS IN THE EYE OF THE BEHOLDER

Blog banner

Security Issues and Countermeasures

Blog banner

10 Signs That Prove YOU are his FIRST priority.

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

What is Vishing?

Blog banner

Why You Should Not Use Free VPNs

Blog banner

OS Evolution Achievements

Blog banner

Multithreading in Operating System

Blog banner

Brain wash of social media

Blog banner

File management

Blog banner