Analyzing a real-time program with Z

被引:0
|
作者
Jacky, J [1 ]
机构
[1] Univ Washington, Seattle, WA 98195 USA
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Real-time behavior of a multi-tasking program running on a preemptive priority-based operating system is analyzed. The operating system and a collection of application tasks are modelled in Z. Real-time is represented by an ordinary Z state variable. The model is adapted to a particular application by defining a state machine for each task and associating execution times with each state. The model is analyzed by exhaustive simulation with the SMV model checker. The state transitions described by Z operation schemas are implemented in the SMV programming language. Invariants, preconditions, and postconditions from the Z are translated to formulas in CTL, the SMV specification language. The SMV program is verified by checking these formulas. This detects coding errors in the SMV program and also reveals inconsistencies in the original Z where operation schemas are inconsistent with state invariants. The errors were corrected. Additional CTL formulas describe temporal properties that cannot be expressed directly in Z. The Z model is validated by checking an example SMV program with CTL formulas that confirm scheduling results from rate-monotonic analysis (RMA). Another application that does not satisfy the assumptions of RMA is analyzed, establishing that high-priority tasks cannot indefinitely delay low-priority tasks and real-time deadlines can be met.
引用
收藏
页码:136 / 153
页数:18
相关论文
共 50 条
  • [1] ANALYZING A REAL-TIME SYSTEM
    WEINGART.A
    COMMUNICATIONS OF THE ACM, 1966, 9 (07) : 478 - &
  • [2] MEASURING AND ANALYZING REAL-TIME PERFORMANCE
    KENNY, KB
    LIN, KJ
    IEEE SOFTWARE, 1991, 8 (05) : 41 - 49
  • [3] ANALYZING MICROTUBULE MOTORS IN REAL-TIME
    COHN, SA
    SAXTON, WM
    LYE, RJ
    SCHOLEY, JM
    METHODS IN CELL BIOLOGY, VOL 39, 1993, 39 : 75 - 88
  • [4] MEASURING AND ANALYZING REAL-TIME KERNEL PERFORMANCE
    BERGGREN, H
    GUSTAFSSON, M
    LINDH, L
    MICROPROCESSING AND MICROPROGRAMMING, 1992, 35 (1-5): : 635 - 640
  • [5] RAVEN: Real-time analyzing and verification environment
    Ruf, J
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2001, 7 (01) : 89 - 104
  • [6] Framework for analyzing the real-time data stream
    Li, Qinghua
    Chen, Qiuxia
    Jiang, Shengyi
    Jisuanji Gongcheng/Computer Engineering, 2005, 31 (16): : 59 - 60
  • [7] SIMULATION OF REAL-TIME PROGRAM FAULTS
    BURNETT, P
    KIDD, PA
    LISTER, AM
    COMPUTER JOURNAL, 1974, 17 (01): : 25 - 27
  • [8] TRY A REAL-TIME ENERGY PROGRAM
    DANIELS, LC
    BROSS, PD
    MOYERS, JW
    HYDROCARBON PROCESSING, 1985, 64 (08): : 73 - &
  • [9] FACILITY FOR REAL-TIME PROGRAM DEVELOPMENT
    BENNETT, DG
    DAVENPORT, RA
    COMPUTER JOURNAL, 1972, 15 (01): : 5 - +
  • [10] ANALYZING TMFS - A STUDY OF NONDETERMINISM IN REAL-TIME CONCURRENCY
    REED, GM
    ROSCOE, AW
    LECTURE NOTES IN COMPUTER SCIENCE, 1991, 491 : 36 - 63