Budgeting completion lateness

An embedded controller must complete a one-time action shortly after a requested deadline. Its completion lateness is the elapsed time from that deadline until the action finishes.


The design uses these timing bounds:

  • Hardware sets an expiry flag on the first 1.00 ms clock tick at or after the requested deadline. Use 1.00 ms as an inclusive upper bound on this tick wait.
  • The main loop checks the flag once per pass. Before the action is triggered, successive checks are at most 1.40 ms apart.
  • Once a check detects the flag, the action starts immediately and completes within 0.35 ms.
  • Each optional background job runs once per pass and adds at most 0.30 ms to the gap between flag checks. These jobs do not lengthen the action itself.

The flag remains set until serviced, and no other delays occur. For this design calculation, add the stated upper bounds to obtain a conservative guarantee, even if particular clock phases could produce a shorter delay.


A schematic timeline separates a requested deadline, flag setting, flag checking, and action completion.


Calculate the original completion-lateness bound with no optional jobs, the largest whole number of optional jobs per pass that preserves a completion-lateness guarantee of at most 3.50 ms, and the revised bound with that number of jobs. Give both time bounds in ms to two decimal places and the job count as an exact integer.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Delay and Timing Functions Questions: