All jobs / Embedded / hardware / RTOS

Embedded / hardware interview question · 1–3 years

A UART interrupt needs to hand a byte to a task through an RTOS queue. What must the ISR do differently?

The strongest answer

Call the FromISR version of the queue API, which never blocks, and pass the higher-priority-task-woken flag to the yield macro so the woken task runs as the ISR exits

Why it works

Right — no blocking, and the yield is what makes the handoff prompt instead of waiting for the next tick.

What a good answer covers

Answers that fall short

Who gets asked this

More RTOS questions