Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cheng A.Real-time systems.Scheduling,analysis,and verification.2002.pdf
Скачиваний:
58
Добавлен:
23.08.2013
Размер:
3.68 Mб
Скачать

REAL-TIME SYSTEMS

REAL-TIME SYSTEMS

Scheduling, Analysis, and Verification

ALBERT M. K. CHENG

University of Houston

A JOHN WILEY & SONS, INC., PUBLICATION

Copyright c 2002 by John Wiley & Sons, Inc., Hoboken, New Jersey. All rights reserved.

Published by John Wiley & Sons, Inc., Hoboken, New Jersey.

Published simultaneously in Canada.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400, fax 978-750-4470, or on the web at www.copyright.com. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, e-mail: permcoordinator@wiley.com.

Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or completeness of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages.

For general information on our other products and services please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993 or fax 317-572-4002.

Wiley also publishes its books in a variety of electronic formats. Some content that appears in print, however, may not be available in electronic format.

Library of Congress Cataloging-in-Publication Data Is Available

ISBN 0-471-18406-3

Printed in the United States of America

10

9 8

7

6 5

4 3

2

1

To My Family and Friends

CONTENTS

PREFACE

xiii

LIST OF FIGURES

xix

1 INTRODUCTION

1

1.1What Is Time? / 3

1.2Simulation / 4

1.3Testing / 5

1.4Verification / 6

1.5Run-Time Monitoring / 7

1.6Useful Resources / 8

2ANALYSIS AND VERIFICATION OF NON-REAL-TIME SYSTEMS 10

2.1Symbolic Logic / 10

2.2Automata and Languages / 28

2.3Historical Perspective and Related Work / 37

2.4Summary / 38 Exercises / 39

3 REAL-TIME SCHEDULING AND SCHEDULABILITY ANALYSIS 41

3.1Determining Computation Time / 43

3.2Uniprocessor Scheduling / 44

vii

viiiCONTENTS

3.3Multiprocessor Scheduling / 65

3.4Available Scheduling Tools / 72

3.5Available Real-Time Operating Systems / 75

3.6Historical Perspective and Related Work / 76

3.7Summary / 77 Exercises / 83

4 MODEL CHECKING OF FINITE-STATE SYSTEMS

86

4.1System Specification / 87

4.2Clarke–Emerson–Sistla Model Checker / 89

4.3Extensions to CTL / 93

4.4Applications / 93

4.5Complete CTL Model Checker in C / 96

4.6Symbolic Model Checking / 116

4.7Real-Time CTL / 120

4.8Available Tools / 126

4.9Historical Perspective and Related Work / 127

4.10Summary / 129 Exercises / 131

5 VISUAL FORMALISM, STATECHARTS, AND STATEMATE

134

5.1Statecharts / 135

5.2Activity-Charts / 140

5.3Module-Charts / 140

5.4STATEMATE / 142

5.5Available Tools / 143

5.6Historical Perspective and Related Work / 145

5.7Summary / 146 Exercises / 147

6 REAL-TIME LOGIC, GRAPH-THEORETIC ANALYSIS,

 

AND MODECHART

148

6.1Specification and Safety Assertions / 149

6.2Event-Action Model / 149

6.3Real-Time Logic / 150

6.4Restricted RTL Formulas / 152

6.5Checking for Unsatisfiability / 155

6.6Efficient Unsatisfiability Check / 157

CONTENTS ix

6.7Industrial Example: NASA X-38 Crew Return Vehicle / 161

6.8Modechart Specification Language / 172

6.9Verifying Timing Properties of Modechart Specifications / 175

6.10Available Tools / 180

6.11Historical Perspective and Related Work / 180

6.12Summary / 181 Exercises / 183

7 VERIFICATION USING TIMED AUTOMATA

187

7.1Lynch–Vaandrager Automata-Theoretic Approach / 187

7.2Alur–Dill Automata-Theoretic Approach / 193

7.3Alur–Dill Region Automaton and Verification / 201

7.4Available Tools / 205

7.5Historical Perspective and Related Work / 207

7.6Summary / 207 Exercises / 210

8 TIMED PETRI NETS

212

8.1Untimed Petri Nets / 212

8.2Petri Nets with Time Extensions / 214

8.3Time ER Nets / 220

8.4Properties of High-Level Petri Nets / 224

8.5Berthomieu–Diaz Analysis Algorithm for TPNs / 226

8.6Milano Group’s Approach to HLTPN Analysis / 229

8.7Practicality: Available Tools / 231

8.8Historical Perspective and Related Work / 232

8.9Summary / 233 Exercises / 236

9 PROCESS ALGEBRA

237

9.1Untimed Process Algebras / 237

9.2Milner’s Calculus of Communicating Systems / 238

9.3Timed Process Algebras / 241

9.4Algebra of Communicating Shared Resources / 242

9.5Analysis and Verification / 250

9.6Relationships to Other Approaches / 255

9.7Available Tools / 255

9.8Historical Perspective and Related Work / 256

x

CONTENTS

 

 

 

9.9

Summary / 256

 

 

 

 

Exercises / 258

 

 

10

DESIGN AND ANALYSIS OF PROPOSITIONAL-LOGIC

 

RULE-BASED SYSTEMS

 

259

 

10.1

Real-Time Decision Systems / 260

 

 

 

10.2

Real-Time Expert Systems / 262

 

 

 

10.3

Propositional-Logic Rule-Based Programs:

 

 

 

the EQL Language / 263

 

 

 

10.4

State-Space Representation / 269

 

 

 

10.5

Computer-Aided Design Tools / 272

 

 

 

10.6

The Analysis Problem / 280

 

 

 

10.7

Industrial Example: Analysis of the Cryogenic Hydrogen Pressure

 

 

Malfunction Procedure of the Space Shuttle Vehicle Pressure

 

 

Control System / 286

 

 

 

10.8

The Synthesis Problem / 294

 

 

 

10.9

Specifying Termination Conditions in Estella / 301

 

10.10

Two Industrial Examples / 317

 

 

 

10.11

The Estella-General Analysis Tool / 324

 

 

 

10.12

Quantitative Timing Analysis Algorithms

/

333

 

10.13

Historical Perspective and Related Work

/

360

 

10.14

Summary / 363

 

 

 

 

Exercises / 365

 

 

11

TIMING ANALYSIS OF PREDICATE-LOGIC

 

RULE-BASED SYSTEMS

 

367

11.1The OPS5 Language / 369

11.2Cheng–Tsai Timing Analysis Methodology / 373

11.3Cheng–Chen Timing Analysis Methodology / 399

11.4Historical Perspective and Related Work / 430

11.5Summary / 432 Exercises / 435

12 OPTIMIZATION OF RULE-BASED SYSTEMS

436

12.1Introduction / 437

12.2Background / 438

12.3Basic Definitions / 439

12.4Optimization Algorithm / 445

12.5Experimental Evaluation / 455

CONTENTS xi

12.6Comments on Optimization Methods / 460

12.7Historical Perspective and Related Work / 462

12.8Summary / 464 Exercises / 465

BIBLIOGRAPHY

467

INDEX

505

Соседние файлы в предмете Электротехника