wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Interrupts

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

Hash password! Is it really secured?

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

Os(Computer security threats)

Blog banner

Clustering Techniques

Blog banner

Different types of e-commerce platforms or advantages and disadvantages

Blog banner

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

Blog banner

The evolution of OS

Blog banner

Incorporating Automation into Digital Forensics.

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 2

Blog banner

bulk email software

Blog banner

Explaining Buffer Overflow with Example

Blog banner

Deadlock and Starvation

Blog banner

Place to visit in pune

Blog banner

Building Confidence in Children Through Daily Routines and Play

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

APACHE KAFKA

Blog banner

Jira Software

Blog banner

MAILFENCE

Blog banner

Importance Of Education.

Blog banner

Street foods

Blog banner

How Sleep Impacts Learning and Behaviour for Toddlers?

Blog banner

INTERNET

Blog banner

What is Vishing?

Blog banner

BEAUTY IS IN THE EYE OF THE BEHOLDER

Blog banner

E-Cash (Electronic Cash)

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

Data Visualization in Decision-Making

Blog banner

Wrike

Blog banner

Evolution of Operating system.

Blog banner

Cyber Forensics in a Ransomware Attack Recovery

Blog banner

SNAPCHAT

Blog banner

Race condition

Blog banner

Why Progressive Web Apps (PWAs) Are Replacing Traditional Websites

Blog banner

Rain

Blog banner

DIGITAL TECHNOLOGY

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

Basic Security For SOAP Services

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

WomenEmpowerment

Blog banner

How to use GIT & GITHUB

Blog banner

Deadlock

Blog banner