Embedded System Question:
Download Questions PDF

Explain what is interrupt latency? How can we reduce it?

Answers:

Answer #1
interrupt latency is the time required to return from the interrupt service routine after tackling a particular interrupt. We can reduce it by writing smaller ISR routines.

Answer #2
The Interrupt latency is the time taken to service an interrupt. It can be reduced by writing shorter handlers which has no or strictly reduced function calls

Answer #3
The time taken from actual hardware interrupt occurrence to ISR invoke.
The scheduling algorithm should be efficient to reduce this latency.

Answer #4
Interrupt latency is the time between an interrupt being trigger to the time when the interrupt handler starts executing. For a single isolated interrupt this is hardware dependent so cannot be improved in software.
However If a lower priority interrupt is triggered whilst a higher priority interrupt handler is running then the lower priority one will be delayed starting hence the interrupt latency increases. In this case minimising the execution time of interrupt handlers will reduce interrupt latency for equal or lower priority interrupts.

Download Embedded System Interview Questions And Answers PDF

Previous QuestionNext Question
Explain Why cannot arrays be passed by values to functions?Explain What are the different qualifiers in C?