Skip to main content Accessibility help
×
Hostname: page-component-78c5997874-dh8gc Total loading time: 0 Render date: 2024-11-08T13:06:42.089Z Has data issue: false hasContentIssue false

18 - Applying Performance Analysis to Real-Time Software Designs

from Part III - Analysis of Real-Time Software Designs

Published online by Cambridge University Press:  05 March 2016

Hassan Gomaa
Affiliation:
George Mason University, Virginia
Get access

Summary

This chapter applies the real-time performance analysis concepts and theory described in Chapter 17 to a real-time embedded system, namely the Light Rail Control System. The complete case study is described in Chapter 21. This chapter focuses on the real-time performance analysis using real-time scheduling theory and event sequence analysis.

Sections 18.1 through 18.3 provide a detailed example of analyzing the performance of the Light Rail Control System. Section 18.1 describes a performance analysis using event sequence analysis. Section 18.2 describes a performance analysis using real-time scheduling theory. Section 18.3 describes a performance analysis using both real-time scheduling theory and event sequence analysis. Section 18.4 describes design restructuring to meet performance goals.

EXAMPLE OF PERFORMANCE ANALYSIS USING EVENT SEQUENCE ANALYSIS

The example of performance analysis using event sequence analysis describes three time-critical event sequences for a train approaching a station, arriving at a station, and detecting a hazard. Assume that the first case to be analyzed is that of the Approaching Sensor detecting that the train is approaching a station at which it must stop, followed by the Arrival Sensor detecting that the train has arrived at the station. Assume also that the train is operating at the cruising speed. A performance requirement is that the system must respond to each of the approaching sensor and arrival sensor input events within 200 msec. The sequence of internal events following the approaching sensor input is depicted by the event sequence on the timing diagram in Figure 18.1, in which there are two hardware devices and four software tasks shown with their appropriate stereotypes (see Chapter 13). Tasks that are not involved in this scenario are excluded from the figure.

Assume that the Train Control state machine is in Cruising state. Consider the case of input from the approaching sensor. The event sequence is as follows, with the CPU time to process each event given in parentheses (where Ci is the CPU time required to process event i).

  1. A0: Approaching Sensor sends an Approached event (i.e., interrupt) to the Approaching Sensor Input task to indicate that the train is approaching a station.

  2. A1: The Approaching Sensor Input task receives an interrupt from the Approaching Sensor and reads the approaching sensor input.

  3. A2: Approaching Sensor Input sends an Approached station message to Train Control.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2016

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×