Download INtime 6 Quick Start Guide

Transcript
Example #4: The INscope Performance Analyzer
Determinism is a key attribute of real-time systems. Speed is always a
useful attribute to have in any embedded system, but the ability to
ensure the correct timing and sequence of events can be even more
important. This is a key difference between a real-time system and a
system that is simply fast.
The INscope performance analyzer is a software tool that provides you
with precise information regarding the timing and sequence of real-time
events in a multi-threaded application, so you can measure the
determinism of your real-time process. INscope traces events while your
application runs in real-time.
In this section we will use the INscope to monitor a multi-threaded realtime process.
How Fast is Deterministic?
The deterministic nature of a real-time system forces a unique set of
requirements upon software applications. A simple definition of a realtime system is one in which the time required to respond to an event is
just as important as the logical correctness of that response. Hard realtime systems require the highest degree of determinism and
performance. Typically, their worst-case event response requirements
are measured in microseconds.
Bounded response to events is the key to defining a hard real-time
system. Real-time systems require determinism to ensure predictable
behavior of the system. Without determinism, a system cannot be called
real-time and, without bounded determinism, a system cannot be
classified as hard real-time.
Figure 34: Comparison of Real-time Systems
The specific degree of determinism required is a function of the
frequency of the real-time events (size of the time interval between
events) and the effect of delays on the dynamic characteristics of that
system. That is, how often do events occur and how quick and
repeatable must the system be in response to those events. Being able
to place a finite and acceptable bound on the value of these numbers is
what distinguishes a hard real-time system from soft real-time systems.
Fast Does Not Equal Deterministic
Faster processors, memory, and peripherals improve the aggregate
performance of a system, but they generally do not directly affect the
bounded determinism of a system. The worst-case response time to an
Copyright © 2005–2014, TenAsys Corporation
page 47 of 64