answersLogoWhite

0


Best Answer

The response to another interrupt request during servicing of an interrupt depends on the setting of the interrupt enable flag and/or the interrupt mask. If the interrupt service routine is thread safe, it will process correctly. More probably, problems will arise so the proper procedure is to either set the interrupt mask (8085) to not allow this or lower priority interrupts before reenabling interrupt, or to leave interrupts disabled until this iteration is complete.

If interrupts are disabled or masked, a subsequent interrupt will be posted but not processed until the first is completed.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What happens when processor is attending an interrupt if it gets another interrupt?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What happens when halt instruction is executed?

The processor stops and goes to the halt state. If an interrupt occurs, it responds and then continues execution.


What happens when interrupts comes?

Interrupt handler is responsible for following functions:- Determine the interrupt source. Determine the service routine to serve the interrupt source.


What is interrupt mechanism?

At the beginning of each FDE cycle, each bit in the interrupt register is checked in turn. This register is a special register in the CPU that takes note of when an interrupt has happened. Each bit in the register represents a different kind of interrupt. If a bit has been set, that would indicate an interrupt has happened! The CPU has to decide whether to service the interrupt immediately, or leave it till later. For example, if 2 interrupts have happened at the same time, one of them has to wait! Which one? That depends upon which one is the least important! Some interrupts are more important than others and so need to be done before others. What about the situation where one interrupt is currently being serviced by the CPU and another happens? Again, it depends on how important the new interrupt is compared to the one already being done. If it is more important, then the cpu will want to service it immediately. When the CPU decides to service an interrupt, it stops processing the current job, 'pushing' the contents of its registers onto the stack. This would include, for example, the contents of the Program Counter and the accumulator. The CPU is now free to work on another piece of software but can return to what it was doing after the interrupt has been serviced because it has saved where it was. It then transfers control to the interrupt handling software for that type of interrupt using the vectored interrupt mechanism. When it has finished servicing the interrupt, the contents of the stack are 'popped' back into the appropriate registers and the CPU continues from where it left off before the interrupt happened.


What happens when a computer is over used?

Freezing occur when the processor is heated.


When an interrupt is serviced then what happens if another interrupt is raised?

It depends on the CPU architecture. Most modern CPUs support several levels of interrupts ranging from high priority to low. If the first interrupt that occurred was a high priority, then a lower priority one occurs, the high priority will continue to execute until it is done, then the the CPU will immediately jump to the lower one. Conversely, if the lower priority interrupt occurred first, it will be interrupted until the higher interrupt is serviced. For 80x86 series processors, do not confuse priority with vector. You may remember in the older days interrupt 13 belonging to the hard drive, and interrupts 3 and 4 being part of the serial port. This is not a function of the CPU but of the interrupt controller. The function of this device is beyond the scope of my answer here. 80x86 has 2 interrupt sources: maskable and non-maksable. Think of the non-maskable as the higher priority and the maskable as the lower. Most peripherals use the maskable interrupt line. Although a few, often functions of the BIOS, Fault, or Paged/Protected mode make use of the non-masked interrupt.


If clock speed increases then what happens to processor speed?

Th clock speed is the processor speed. It is simply the amout of operations the processor can do per second. However if the processor has multiple cores, it will be as fast as number of cores * clock speed. Note that the processor speed is not the overall computer speed.


What happens when messengers from the British interrupt a meeting in Umuofia?

Okonkwo kills one of the messengers, but the villagers let the others escape


If a citizen of Russia is attending school in the US on a Student Visa and becames pregnant by an American what happens toher Student Visa?

If a citizen of Russia is attending school in the US on a Student Visa and becames pregrant by an American what happens to her Student Visa?


When execution id going to service an interrupt what happens to stack and what are the registers saved?

The stack will store the return address and the accumulator and flags.


What happens if both CPU and IO devices want to access the bus at the same time?

Maybe you have seen something called an interrupt as you work on your computer. These Interrupt Requests come from processes or devices that want to use resources. It's all very orderly.


What happens when something interrupts the process of succession?

Once the succession is destroyed it becomes a secondary succession


What happens when the processor goes out on a hp laptop?

If your processor goes out on any computer, it will most likely stop running. If this has happened to you, i highly recommend you replace it. Otherwise, you will not have a computer to work on.