How do autonomous vehicles prioritize tasks in real-time?

Instruction: Distinguish compute scheduling from driving behavior priorities. A control task has a 10 ms deadline but shares a required accelerator with a non-preemptible 25 ms background job. Explain why low average utilization does not establish schedulability and describe the evidence needed for a redesign.

Context:

Analyze a scheduling conflict without assuming that a path planner, a reward function or a high-priority label can preempt an already running job.

Updated

Worked answer

Compute scheduling determines when work runs under deadlines and resource constraints. Driving planning chooses a feasible trajectory subject to behavior, physical and operating-domain constraints. A*, DWA or an RL policy can address particular planning problems; none establishes compute schedulability by itself.

In the supplied case, a newly released control task can wait longer than its 10 ms deadline for the non-preemptible 25 ms job, even before its own computation begins. Low average utilization does not bound this worst-case blocking. Raising the control task's priority alone cannot preempt that job under the stated assumptions.

Investigate partitioning the required resource, bounding or splitting background work where supported, or moving it to a separate path. Establish worst-case execution and blocking assumptions, data dependencies, interference, queue limits and admission rules. Validate the actual schedule and end-to-end deadlines under load, faults and thermal conditions. An isolated benchmark or a favorable mean is insufficient.

Driving behavior needs its own reviewed constraints and monitored response to missed deadlines. A weighted comfort/efficiency cost must not silently trade away a mandatory constraint. The correct response to a missed deadline depends on the validated system and remaining capabilities; this interview exercise does not define a road-safe controller.

Related Questions