Computer Science, asked by AmishaKhetwal6018, 11 months ago

Should any device be allowed to interrupt the cpu while another interrupt is being serviced?

Answers

Answered by soha16
1

Answer:

It is possible to allow nested interrupts. This is often done when there is a heirarchy of interrupts, some with higher priority than others.

In order for this to work, the second interrupt must not be allowed to influence the progress of the first interrupt. We call this being "thread safe". In a nested scheme, an interrupt mask is set so that higher priority interrupts can be permitted, while blocking interrupts of the same or lower priority, and then interrupts are reenabled during the interrupt service routine. At the conclusion of the first routine, interrupts are disabled again, the mask is restored, and the normal interrupt return sequence is executed.

In the 8085, this can be supported using the Read Interrupt Mask (RIM) and Set Interrupt Mask (SIM) instructions

While not strictly required, the logical priority is often INTR, RST5.5, RST6.6, RST7.5, and then TRAP, in order of increasing priority.

Hope it helps you

Similar questions