Glossary term
Blocking Time
Engineering definition of blocking time covering fixed-priority response analysis, resource blocking, non-preemptive sections, priority inversion and validation evidence.
Definition
metricBlocking time is the bounded delay that a task can experience before executing because another lower-priority or non-preemptive activity temporarily prevents progress.
Blocking time appears in real-time response-time analysis, embedded firmware, operating systems and shared-resource designs when a task can be delayed by locks, non-preemptive sections, bus ownership, interrupt masking, priority inversion or serialized drivers. A useful review states the cause, maximum bound, affected tasks, resource protocol, measurement evidence and deadline margin.
Blocking time is the bounded delay that a task can experience before executing because another lower-priority or non-preemptive activity temporarily prevents progress. In real-time analysis it is often written as B_i, the blocking term for task tau_i.
The term appears in embedded firmware, real-time operating systems, device drivers, motion control, medical devices, avionics and industrial controllers. It is not the same as ordinary CPU load. A task can have low utilization and still miss a deadline if blocking time consumes the available margin.
Response-Time Role
In fixed-priority response-time analysis, a simplified form is:
where C_i is WCET, B_i is blocking time, hp(i) is the set of higher-priority tasks, J_j is release jitter and T_j is period or minimum inter-arrival time.
The deadline condition is:
so blocking time directly reduces deadline margin:
Common Sources
Blocking time can come from lower-priority critical sections, priority inversion, non-preemptive scheduler regions, interrupt-disabled windows, serialized bus drivers, storage writes, allocator locks, queue handoff, DMA completion paths or long device transactions.
For a fixed-priority task blocked by at most one lower-priority critical section, a first screening value is:
where CS_lp is the set of lower-priority critical sections that can delay task tau_i.
For a non-preemptive section:
where T_np,lp is the bounded duration of applicable lower-priority non-preemptive work.
Worked Deadline Screen
Suppose a control task has:
with deadline:
Higher-priority interference and jitter add:
The measured worst blocking time is:
The response screen is:
and the margin is:
The task passes, but only with 0.45 ms margin. If a driver change increases blocking to:
then:
and:
The same CPU utilization can now fail the deadline.
Bounded Versus Unbounded
Blocking time is useful only when it is bounded. A mutex with priority inheritance may bound one inversion path. A priority-ceiling protocol may prevent some nested-lock patterns. A short non-preemptive section can be measured and budgeted.
Unbounded blocking is different. Waiting on storage, logging, dynamic allocation, unbounded queues, network retries or user-space services inside a hard real-time path can invalidate the timing claim. The release evidence should either remove that dependency or prove a hard upper bound.
Validation Evidence
Useful evidence includes maximum lock-hold time, scheduler trace, interrupt-mask duration, bus transaction time, priority-inheritance trace, priority-ceiling configuration, worst-case phasing test, deadline-miss counter and regression rule for changed critical sections.
The measurement boundary must be explicit. A lock-hold trace may exclude interrupt-disabled entry code, queue wakeup, cache refill, driver cleanup or bus arbitration after the lock is released. If those effects delay the same task, they either belong in B_i or must be accounted for in another named timing term.
The measured bound should be compared with the budget:
and the remaining deadline margin should stay positive:
If measurement uncertainty is significant, the guard margin should include it rather than reporting a marginal pass.
Relationship To Neighbor Terms
Schedulability analysis uses blocking time as one input. Non-preemptive sections and priority inversion are common causes. Lock contention is broader waiting on a synchronization resource. Preemption latency and interrupt latency describe other delay paths, while release jitter shifts the release time itself.
Deadline miss is the failure event when blocking and other delay terms push response beyond the required time. WCET describes execution of the task itself, not the waiting imposed before or during execution.
Common Mistakes
The most common mistake is omitting blocking from a utilization-only review. Another is using average lock-hold time instead of worst-case hold time. A third is enabling priority inheritance but leaving long storage or logging work inside the protected critical section.
A strong blocking-time review states the resource, affected tasks, maximum bound, mitigation protocol, measured evidence, deadline margin and change rule for future critical-section growth.