answersLogoWhite

0


Best Answer

When a CPU receives an Interrupt Request (IRQ), it first checks if it must react to the interrupt. So-called Maskable Interrupts allow a programmer to specify that the CPU does ignore it, while Non-Maskeable Interrupt requests must be serviced.

It is important to note that an Interrupt is a way to communicate asynchronously with the CPU - very much like sending an email.

When you send an email to a person, you cannot know at which time the person reads the message, let alone when the person reacts.

A phone call, on the other hand is synchronous (happening at the same time): when I call you, you must answer right now.

Interrupts where introduced to allow tgis email-like communication with slower hardware, like a hard-disk. This way, the CPU can order something from the HD, like "go to this location", the CPU can then return to more important stuff, while the HD seeks. When the HD is done, it sends the CPU an IRQ, which tells the CPU "I am done, talk to me".

The CPU then does a so-called contex-switch, which is a rather costly operation: it must store all the data it was working on earlier in some secure way, normally on the stack and then begin to execute the so-called Interrupt Handler, a piece of software associated with the number of the IRQ.

After executing it, it can carry on doing what it did earlier (after having loaded all the data back into its registers).

The concept of IRQs make multi-tasking possible, here, the OS interrupts each process after its time-slice has expired.

User Avatar

Wiki User

โˆ™ 2008-08-17 11:51:43
This answer is:
User Avatar
Study guides

What are advantages of Database Approach

What is a network that covers a large geographical area such as a city country or world

What is the worlds largest wan

What is a network server

โžก๏ธ
See all cards
4.18
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
109 Reviews

Add your answer:

Earn +20 pts
Q: What happens when a CPU is interrupted?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why DMA access to main memory is given higher priority than processor access to main memory?

In a DMA while the data is transferred between the memory and the device, if it is stopped or interrupted by any other device like CPU, it would result into a Data loss, since DMA doesnt have a program counter unlike CPU which stores it current position. In CPU if it is interrupted, it suspends it s operation without any data loss. Hence DMA has a higher priority than CPU.


What happens when the CPU activates the bios?

The POST runs


What happens to the data in the CPU?

goes into the computer's hardware.


What happens when an electric current is interupted?

When the circuit is interrupted, the current stops flowing.


What happens when a chemical change does not go through completion?

The chemical reaction is interrupted.


Difference between preemptive and non preemptive system.with example?

Preemptive scheduling allows a process to be interrupted in the midst of its execution, taking the CPU away and allocating it to another process.Non-preemptive scheduling ensures that a process relinquishes control of the CPU only when it finishes with its current CPU burst.


What is correct will not be interrupted or will be not interrupted?

Will not be interrupted is correct


What happens if the CPU fan fails?

The CPU will overheat (safety shutdown usually happens at around 69 degrees C), and you will be unable to use the computer for prolonged periods unless it is running with less than 50% CPU usage in a very cool environment. Side effects of constant CPU overheat can include the capacitors blowing on the motherboard if they are near the CPU heatsink.


What happens in a series circuit if a light blows?

The circuit current is interrupted and all the lights will go out.


What happens if you spray dust remover in your CPU?

It reluctantly moves and then shuts off


When the mouse initiates a hardware interrupt to the CPU how does the CPU know?

The CPU does not "know" it is not a thinking being. What happens is that the interrupt flag ( a binary true or false register) is detected by the operating system which is being executed by the CPU and the code of the operating system runs a routine in response.


What is the episode when frasier is interrupted before a date by martin niles and daphne?

there are about 50 episodes that, that happens you have to explain more

People also asked

What is solution of external fragmentation?

View results