Explain the role of interrupts in embedded systems and how you manage them to optimize system performance.

Technical