Real-Time Systems, RTOS Scheduling & WCET Questions

Building embedded and control software with timing guarantees: hard, firm and soft real-time and why fast is not the same as predictable, RTOS task scheduling (fixed-priority, rate-monotonic, earliest-deadline-first, cooperative vs preemptive, lightweight cooperative schedulers on small microcontrollers), priorities and preemption, RTOS task states and lifecycle, bounding priority-inversion blocking with inheritance and ceiling protocols in RTOS designs, schedulability and response-time analysis including blocking terms, worst-case execution time estimation (static, measurement-based, cache, pipeline and DMA bus effects), RTOS internals such as the tick, tickless idle, software timers and context switching, serving aperiodic and best-effort work beside hard periodic tasks, multicore and mixed-criticality scheduling, bounded-wait lock APIs, choosing an RTOS, and diagnosing deadline misses and jitter from timing traces. Excludes interrupt mechanism and ISR design, general-purpose OS (desktop and server) CPU scheduling, priority inversion as a generic locking hazard, general synchronization primitives and lock-free data structures, firmware architecture and power optimization, which are covered elsewhere.

MediumTechnical
77 practiced

A single-core control application with 1 ms hard tasks and best-effort tasks must move to a four-core SoC. How do you assign work to cores, what new timing risks appear, and how do you check the 1 ms deadlines still hold?

EasyTechnical
85 practiced

Walk through the life of an RTOS task from creation to being scheduled. What states can it be in, what does the kernel keep for each task, and what moves it between states?

EasyTechnical
77 practiced

Your team has to pick an RTOS for a new product and the shortlist is FreeRTOS, Zephyr, VxWorks and QNX. What would you compare, and which would you lean towards for a small battery-powered sensor versus a certified safety product?

MediumTechnical
81 practiced

Your RTOS sampling task misses its deadline about once an hour and its jitter is visible, yet CPU utilisation is under 40%. How do you find the cause?

EasyTechnical
81 practiced

Describe what a context switch is in an RTOS running on an embedded CPU. List the CPU and memory state that must be saved and restored, discuss stack implications for tasks and ISRs, and estimate the performance costs and latency sources. Suggest two methods to reduce context-switch overhead on a resource-constrained system.

Unlock Full Question Bank

Get access to all 32 Real-Time Systems, RTOS Scheduling & WCET interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.