Home > Store

Real-Time Design Patterns: Robust Scalable Architecture for Real-Time Systems

Register your product to gain access to bonus material or receive a coupon.

Real-Time Design Patterns: Robust Scalable Architecture for Real-Time Systems

Book

  • Sorry, this book is no longer in print.
Not for Sale

About

Features

The first book to help real-time and embedded systems programmers leverage the powerful technique of design patterns.

° Applying a proven object technology concept to the unique, specialized area of realtime and embedded systems development

° Practical and applicable -- helps reader apply proven solutions to recurring design challenges

° The latest from Bruce Powel Douglass, a noted expert on real-time development

Description

  • Copyright 2003
  • Dimensions: 7-3/8" x 9-1/4"
  • Pages: 528
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-69956-7
  • ISBN-13: 978-0-201-69956-2

Real-time and embedded systems developers face unique challenges. The systems they design must use very limited processor and memory resources optimally to meet mission-critical and high reliability requirements. Developers working on these systems see the same common threads in problems again and again. The very best developers abstract these problems and their solutions into generalized approaches that prove consistently effective: design patterns. In this book, real-time programming guru Bruce Powel Douglass collects the best design patterns from this unique, and rapidly growing, area of programming, and presents them in an instructional format that teaches the reader the "what, when, and how" of leveraging the significant power of these proven design solutions.

Sample Content

Online Sample Chapters

Design Patterns for Real-Time Systems: Resource Patterns

Real-Time Design Patterns: Memory Patterns

Downloadable Sample Chapter

Click below for Sample Chapter(s) related to this title:
Sample Chapter 6

Table of Contents

(NOTE: Each chapter, except Chapter 9, concludes with References.)

Preface.

I. DESIGN PATTERN BASICS.

1. Introduction.

Basic Modeling Concepts of the UML.

Models.

Structural Elements and Diagrams.

Small Things: Objects, Classes and Interfaces.

Relations.

Structural Diagrams.

Big Things: Subsystems, Components, and Packages.

Behavioral Elements and Diagrams.

Actions and Activities.

Operations and Methods.

Statecharts.

Activity Charts.

Interactions.

Use Case and Requirements Models.

Capturing Black-Box Behavior without Revealing Internal Structure.

What is a Design Pattern?

2. Architecture and the UML.

Architecture.

Logical and Physical Architecture.

Logical Architecture.

Physical Architecture.

The Five Views of Architecture.

Subsystem and Component View.

Concurrency and Resource View

Distribution View.

Safety and Reliability View.

Deployment View.

Implementing Architectures.

Alphabet Soup: CORBA, UML and MDA Basics.

MDA to the Rescue.

Creating Architecture Elements—the Model Level.

Subsystem and Component View.

Concurrency and Resource View.

Distribution View.

Safety and Reliability View.

Deployment View.

3. The Role of Design Patterns.

Introduction.

The ROPES Development Process.

Why Process?

ROPES Process Overview.

The ROPES Microcycle in Detail.

Party!

Analysis with the ROPES Process.

Design with the ROPES Process.

Translation.

Test.

Design Pattern Basics.

What is a Design Pattern?

Basic Structure of Design Patterns.

How to Read Design Patterns in this Book.

Using Design Patterns in Development.

Pattern Hatching—Locating the Right Patterns.

Pattern Mining—Rolling your own Patterns.

Pattern Instantiation—Applying Patterns in Your Designs.

II. ARCHITECTURAL DESIGN PATTERNS.

4. Subsystem and Component Architectural Patterns.

Layered Pattern.

5-Layer Architecture Pattern.

Microkernel Architecture Pattern.

Channel Architecture Pattern.

Recursive Containment Pattern.

Hierarchical Control Pattern.

Virtual Machine Pattern.

Component-Based Architecture.

ROOM Pattern.

5. Concurrency Patterns.

Introduction.

Concurrency Patterns.

Message Queuing Pattern.

Interrupt Pattern.

Guarded Call Pattern.

Rendezvous Pattern.

Cyclic Executive Pattern.

Round Robin Pattern.

Static Priority Pattern.

Dynamic Priority Pattern.

6. Memory Patterns.

Memory Management Patterns.

Static Allocation Pattern.

Pool Allocation Pattern.

Fixed-Sized Buffer Pattern.

Smart Pointer Pattern.

Garbage Collection Pattern.

Garbage Compactor Pattern.

7. Resource Patterns.

Introduction.

Critical Section Pattern.

Priority Inheritance Pattern.

Highest Locker Pattern.

Priority Ceiling Pattern.

Simultaneous Locking Pattern.

Ordered Locking Pattern.

8. Distribution Patterns.

Introduction.

Shared Memory Pattern.

Remote Method Call Pattern.

Observer Pattern.

Data Bus Pattern.

Proxy Pattern.

Broker Pattern.

9. Safety and Reliability Patterns.

Introduction.

Handling Faults.

Protected Single Channel Pattern.

Homogeneous Redundancy Pattern.

Triple Modular Redundancy Pattern.

Heterogeneous Redundancy Pattern.

Monitor-Actuator Pattern.

Sanity Check Pattern.

Watchdog Pattern.

Safety Executive Pattern.

Appendix A: Notational Summary.
Appendix B: Pattern Index.
Index. 0201699567T08282002

Preface

Goals

Real-time and embedded systems ("RTE systems") must execute in a much more constrained environment than "traditional" computer systems, such as desktop and mainframe computers. RTE systems must be highly efficient, optimally utilizing their limited processor and memory resources, and yet must often out-perform systems with significantly more compute power. In addition, many RTE systems have important safety critical and high reliability requirements due to their use in systems such as avionics flight control, nuclear power plant control, life support, medical instrumentation, just to name a few. The creation of RTE systems to meet these functional and quality of service requirements requires highly experienced developers with decades of experience. Yet, over the years, as these developers development of such systems, they see the same kinds of problems recurring over and over - not exactly the same problems, but common threads. The very best developers abstract these problems and their solutions, into generalized approaches that have been consistently effective. These generalized approaches are called design patterns. They are often best applied at the level of the system or software architecture - the sum of design decisions that affect the fundamental organization of the system. Real-Time Design Patterns is an attempt to capture in one place a set of architectural design patterns that are useful in the development of RTE systems.

Audience

The book is oriented towards the practicing professional software developer and the computer science major, in the junior or senior year. This book could also serve as an undergraduate or graduate level text, but the focus is on practical development rather than a theoretical introduction. The book assumes a reasonable proficiency in at least one programming language and a basic understanding to the fundamental concepts of object orientation, the Unified Modeling Language (UML), and real-time systems.

Organization

The first section consists of three chapters. Chapter 1 provides a very brief review of the major concepts in the Unified Modeling Language. Chapter 2 introduces the fundamental concepts of architecture, as they are defined in the Rapid Object-oriented Process for Embedded Systems (ROPES), including the primary division of architecture into logical (design-time) and physical (run-time) aspects, and the 5 important architectural views. In the third chapter, the book gets into a discussion of design patterns and their role in defining architecture. Because it is difficult to discuss architecture in a process-free environment, the ROPES process, and the key technologies it tries to optimize, are introduced to provide a background in which design patterns may be effectively discussed. Once process has been introduced, design patterns are next. Their various aspects are explained and the fundamental organization of design patterns used in this book is provided. The chapter finishes with a discussion of how design patterns can be applied in the development of real systems.

Section 2 contains the architectural design patterns which reify the ways that large scale system components are organized and structured to optimize some set of general system criteria.

The patterns in the second section are organized around the architectural concept they address. Chapter 4 is dedicated to high-level structural patterns - focused around what is called the Subsystem or Component architecture. Because concurrency and resource management is so crucial to real-time and embedded systems, Chapter 5 focuses on the common patterns of concurrency. Memory management is crucial for many systems in this domain, and is the subject of Chapter 6. We see even more general resource management patterns in Chapter 7. Chapter 8 presents a number of common distribution architecture patterns that define how objects can be distributed across multiple address spaces and computers. Finally, Chapter 9 provides a number of patterns that deal with building safe and reliable architectures.

Two appendices appear at the end of the book. The first is simply a summary of the UML graphical notation and the second is an index of the patterns by name.

The CD-ROM has a number of interesting and hopefully useful things on it. It contains a full copy of the Rhapsody UML tool with instructions on how to get a temporary license from I-Logix. Other additional tools potentially useful for developers of real-time developers are also provided. The Papers chapter contains some papers on various topics as well as some useful OMG specifications.

More Information

Additional information on the UML, object-oriented technology and the development of real-time systems can be found at www.ilogix.com. In addition, the current UML, MDA, and CORBA standards can be seen at www.omg.org. For more information on using the UML in real-time systems, Real-Time UML 2nd Edition is also available from Addison-Wesley, as is the more comprehensive Doing Hard Time: Developing Real-Time Systems with UML, Objects, Frameworks and Patterns. Many other well-written and useful books on the UML and software engineering are similarly available.



0201699567P05132002

Foreword

Untitled Document Foreword

In this book, Bruce Douglass illustrates for the first time how two important contemporary software engineering advances-patterns and the UML-can be applied advantageously to the concepts and techniques traditionally used in mainstream real-time software. Most other publications about software patterns (such as [1]) have not addressed real-time systems per se in any depth, or have focused on the narrower and more advanced topic of real-time middleware ([2]), or have been application domain specific ([3]).

This book offers a significant benefit to the practice of real-time computing, because software patterns and the UML enable potentially lower software costs in many systems. Real-time software spans the entire range of complexity and costs. In some real-time systems, the software is so small and simple, and the hardware is so complex and/or expensive, that software costs are a small fraction of the system costs (for example, software in a laser gyroscope). In other real-time systems, the software is so large and complex that regardless of the hardware costs, the software costs are a major part of the system costs (for example, software in a military or commercial aircraft). Barry Boehm, in his recent book updating the ubiquitous Cocomo software cost model [4], assigns an effort multiplier of 1.74 (the highest one) to all lifecycle phases of this latter kind of software, compared to "nominal" software (depending on the project circumstances, that multiplier can easily be a major underestimation). Most real-time software lies between these two extremes, and it is that mainstream audience of practitioners who will benefit the most from this book. Historically, developers of real-time software have lagged behind other developers in using the most contemporary software engineering methodologies. There are several reasons for this.

One is, as mentioned above, that some real-time software is so simple that only the most elementary methodologies are needed.

A more common reason is that many real-time systems with non-trivial software suffer from hardware capacity constraints (due to size, weight, power, and so on). Software structured for purposes such as re-usability, modularity, or flexibility does tend to consume additional time or space resources. This is sometimes compensated for by the fact that commodity computing system hardware cost is always declining and its performance is always increasing. But in many real-time systems, hardware cost is still an easily measured quantitative factor that is thought to outweigh the hard-to-measure qualitative factors of software quality and costs.

Yet another reason is that real-time software practitioners are frequently application experts who are not always educated enough in modern software engineering to understand and employ it properly. New computer science and engineering graduates rarely enter the real-time field, because their formal education has not exposed them to much if any significant realistic real-time practice (real-time is a uniquely disadvantaged aspect of computer science and engineering in this respect), and what little real-time theory they may have learned is still of very limited practical relevance.

This book provides an introduction to software patterns and the UML-by one of the most authoritative contributors to those topics-as applied to mainstream real-time software, in a manner that is easily understood by practitioners in that field without prerequisite knowledge. Those who make a modest investment in learning this material can expect to discover how to cast much of their hard-earned professional experience in a framework that can make their real-time software designs more predictable-not just in terms of their timeliness (timeliness predictability being the raison d'être of real-time computing), but also in terms of their lifecycle costs.

Another prospective benefit for many real-time software designers of becoming familiar with software patterns and the UML is that these issues are of rapidly increasing importance to building larger scale, more dynamic and complex, and more distributed real-time computing systems. Such systems offer highly significant (albeit as yet not always fully appreciated) added value to many enterprises, and hence offer perhaps the most challenging and rewarding career development opportunities in the field of real-time computing systems. This book is an excellent starting point toward that future.

-E. Douglas Jensen
Natick, Massachusetts
July 2002

Doug Jensen is widely recognized as one of the pioneers of real-time computing systems, and especially of dynamic distributed real-time computing systems. He is credited with the research leading to the world's first deployed distributed real-time computer control system product. He has over three decades of hardware, software, and systems research and technology development experience in military and industrial real-time computing, and was on the faculty of the Computer Science Department of Carnegie Mellon University for eight years. He is currently in a senior technical leadership position at The MITRE Corporation, where he conducts research and technology transition on real-time computing systems for projects of strategic national interest. Doug Jensen's Web site is http://www.real-time.org.

References
1. Boehm, Barry, Ellis Horowitz, Ray Madachy, Donald Reifer, Bradford Clark, Bert Steece, A. Winsor Brown, Sunita Chulani, and Chris Abts. Software Cost Estimation with Cocomo II. Upper Saddle River, NJ: Prentice Hall, January 2000.
2. Gamma, Erich, Richard Helm, Ralph Johnson, and John Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software. Reading, MA: Addison-Wesley, 1995.
3. Lea, Doug. Design Patterns for Avionics Control Systems, http://st-www.cs.uiuc.edu/users/patterns/patterns.html, 1994.
4. OOPSLA 2001, Workshop on Patterns in Distributed Real-Time and Embedded Systems, ACM, October 2001.

Index

Click below to download the Index file related to this title:
Index

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020