Interview questions
Key points for each answer are in the app's question bank.
- Describe the task states in a typical RTOS.Basic
- Preemptive versus cooperative scheduling: trade-offs?Basic
- Mutex versus binary semaphore versus counting semaphore.Basic
- What is priority inversion? Explain two ways to prevent it.Intermediate
- What conditions lead to deadlock, and how do you prevent it?Intermediate
- Show a race condition between a task and an ISR, and fix it.Basic
- How does a context switch work on Cortex-M?Advanced
- When would you use a queue, a task notification or an event group?Intermediate
- How do you size task stacks and detect stack overflow?Intermediate
- Why shouldn't an ISR call blocking RTOS APIs? How do you defer work?Basic
- What is tickless idle and why does it matter?Intermediate
- vTaskDelay versus vTaskDelayUntil: when do you need each?Basic
- What is rate monotonic scheduling, and how do you check schedulability?Advanced
- Compare ways to protect a critical section.Intermediate
- What's the difference between reentrant and thread-safe functions?Intermediate
- Compare FreeRTOS heap schemes heap_1 to heap_5.Intermediate
- Design watchdog supervision for a system with six tasks.Advanced
- Design a producer-consumer pipeline between an ISR and a task.Intermediate
- How do Zephyr and FreeRTOS differ for a product team?Intermediate
- How do RTOS software timers work, and what are their limits?Intermediate
Hands-on challenges
UART receive ring bufferDrivers & ISRs · Medium · 4 bugs · ~6 minFreeRTOS sensor pipelineRTOS · Hard · 5 bugs · ~8 minSharing SPI between tasksRTOS · Medium · 3 bugs · ~6 minLogging through a queueRTOS · Warm-up · 3 bugs · ~4 minCritical sections and scheduler locksRTOS · Medium · 4 bugs · ~5 minPeriodic control loopRTOS · Medium · 3 bugs · ~5 minLogging over UART with DMADMA & graphics · Medium · 3 bugs · ~5 minFlags shared with an ISRDrivers & ISRs · Medium · 2 bugs · ~5 minWi-Fi reconnect handlerProtocols · Medium · 3 bugs · ~6 minNested mutexes under loadRTOS · Hard · 3 bugs · ~8 minTask check-in watchdogRTOS · Medium · 3 bugs · ~7 minOS sanity watchdog hooksRTOS · Hard · 3 bugs · ~7 minSynchronous request and replyRTOS · Hard · 3 bugs · ~8 minReport task stack overflowRTOS · Medium · 3 bugs · ~6 minTouch driver interrupt handlerEmbedded Linux · Hard · 3 bugs · ~7 minEncoder ISR at top priorityRTOS · Medium · 3 bugs · ~6 minHelpers shared by two tasksMemory & C · Medium · 3 bugs · ~6 min
Design rounds
Companies that emphasise it
QualcommChipmaker · India hiring: HighTata ElxsiEngineering services · India hiring: HighEspressifChipmaker · India hiring: MediumMedtronicMedical devices · India hiring: MediumRenesasChipmaker · India hiring: MediumAppleConsumer devices · India hiring: LowGarminConsumer devices · India hiring: LowMeta Reality LabsConsumer devices · India hiring: LowNordic SemiconductorChipmaker · India hiring: Low
Practise these with an AI interviewer that asks the follow-up.
Start practising