Skip to main content
QUICK REVIEW

[Paper Review] A Note on Modeling Self-Suspending Time as Blocking Time in Real-Time Systems

Jian-Jia Chen, Wen-Hung Huang|arXiv (Cornell University)|Feb 24, 2016
Real-Time Systems SchedulingComputer Science5 references4 citations
TL;DR

This paper formally proves the correctness of modeling self-suspending time as blocking time in fixed-priority real-time systems, showing that the worst-case response time of a task can be safely bounded by treating self-suspensions as blocking delays. The key contribution is a rigorous justification of Liu's schedulability test for self-suspending tasks using blocking time abstraction, validated through critical instant analysis and response time bounds under rate-monotonic scheduling.

ABSTRACT

This report presents a proof to support the correctness of the schedulability test for self-suspending real-time task systems proposed by Jane W. S. Liu in her book titled "Real-Time Systems" (Pages 164-165). The same concept was also implicitly used by Rajkumar, Sha, and Lehoczky in RTSS 1988 (Page 267) for analyzing self-suspending behaviour due to synchronization protocols in multiprocessor systems.

Motivation & Objective

  • To formally validate the correctness of modeling self-suspending behavior as blocking time in real-time task systems.
  • To establish a theoretical foundation for Liu's schedulability test in her book 'Real-Time Systems' for self-suspending sporadic tasks.
  • To extend the applicability of blocking time analysis to constrained-deadline systems with self-suspending tasks under fixed-priority scheduling.
  • To provide a rigorous proof that the worst-case response time of a task is bounded by a modified utilization-based test incorporating blocking delays.

Proposed method

  • Proposes a blocking time model where self-suspension of task τi contributes bi = min(Ci, Si) to the blocking time of higher-priority tasks.
  • Defines total blocking time Bk = Sk + Σi=1 to k-1 bi for task τk, representing interference from higher-priority self-suspending tasks.
  • Applies critical instant analysis to identify the worst-case response time scenario, assuming synchronous job releases and earliest possible subsequent releases.
  • Uses response time analysis with the inequality Ck + Bk + Σi=1 to k-1 ⌈t/Ti⌉Ci ≤ t to verify schedulability for any t ≤ Dk.
  • Employs proof by contradiction to show that if the response time exceeds the bound, a contradiction arises in workload accumulation.
  • Relies on transformation of time intervals and workload accounting to demonstrate that the blocking time model safely bounds interference.

Experimental results

Research questions

  • RQ1Is it correct to model self-suspending time as blocking time in fixed-priority real-time systems?
  • RQ2Does Liu's schedulability test for self-suspending tasks remain valid when self-suspensions are treated as blocking delays?
  • RQ3Can the worst-case response time of a self-suspending task be safely bounded using a blocking time abstraction?
  • RQ4Is the critical instant theorem still applicable when tasks self-suspend, and if not, how should it be adapted?
  • RQ5Does the blocking time model preserve schedulability guarantees under rate-monotonic scheduling for constrained-deadline systems?

Key findings

  • The blocking time model Bk = Sk + Σi=1 to k-1 min(Ci, Si) correctly bounds the worst-case interference from higher-priority self-suspending tasks.
  • The worst-case response time of task τk is safely bounded by Rk′ if Rk′ ≤ Tk and the inequality Ck′ + Σi=1 to k-1 bi + Σi=1 to k-1 ⌈(t−ti)/Ti⌉Ci > t−t1 holds for all t in [t1, fk).
  • The proof confirms that the response time bound Rk′ is valid even when starting from an arbitrary job in any fixed-priority schedule, not just the worst-case one.
  • The blocking time abstraction ensures that the schedulability test remains conservative and correct, even when self-suspensions are not synchronized with task releases.
  • The approach is validated through a concrete example with four tasks, demonstrating that the idle time between jobs is bounded by the sum of self-suspension times of lower-priority tasks.
  • The result justifies the use of the utilization-based test Ck + Bk / Tk + Σi=1 to k-1 Ui ≤ k(2^(1/k) − 1) for rate-monotonic scheduling of self-suspending tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.