<< Chapter < Page Chapter >> Page >
A real time system is a system that can guarantee that no input's latency is longer than a specified maximum.

What is real time?

The term real time refers to systems whose ability to process data and commands is not only fast enough so as to seem instantaneous (relative to users or systems that rely on it) but who can handle as much data or as many requests as the users and systems are expected to provide. These two standards for "real time" can be described by as "bandwidth" and "worst case response."

Often, high bandwidth and low latency go hand in hand because expectations of quality in a system extend to both responsiveness and capacity. Three examples: the real time computer game, the cell phone, and the control systems of a missile.


Bandwidth is a measure of the amount of data a system can handle on average. Bandwidth is expressed in hertz or bits per second. "Bits per second" is the term generally used for computer systems processing data. Hertz is the term generally used for communications and analog systems. Actually, the terms refer to the same unit because a "bit" has no unit. The more bandwidth a device has, the more data it can process per second or the larger the range of frequencies it can support. If a device does not have sufficient bandwidth, then there are two common ways in which the system can handle the problem.

If the shortage of bandwidth is only temporary, due to a spike in requests or short term complication, then a system may support queuing the data for later processing. When the input has returned to "normal," the system can use excess bandwidth to catch up. Being able to support queuing is expensive because extra memory and bandwidth will be required.

If the shortage of bandwidth lasts longer than the system can handle, or if the system cannot handle a shortage at all, then the system will lose the extra bandwidth. This can mean that frequencies coming into the system will not come out again, or this can mean that some (or all!) of the requests will be ignored.

Some systems are designed so that they will always have sufficient bandwidth. This is more common for real time systems. Other systems are designed to have enough bandwidth "on average." The internet is a major example of such a system. In general, ensuring that a design has sufficient bandwidth for the desired application is a major concern of an engineer.

For the first example, the real time computer game, bandwidth corresponds to the maximum amount of input the game can handle from the internet, keyboard, mouse, etc without skipping, losing commands, or generally messing up. Because modern computers generally far exceed the user's ability to provide input, this is rarely a problem.

With cell phones, the device is specifically designed to support a known bandwidth of communication, a two-way voice conversation. Because the input bandwidth is very stable, the cell phone itself does not have latency or dropping problems. Problems do occur between the cell phone and the cell phone tower, and this can cause skipping in the conversation. These problems are more related to the random noise inherent to wireless communication than to the insufficient capacity of the cell phone. The telephone system transmits sound information with a bandwidth of a few thousand hertz, so the bandwidth of the cell phone must also be able to provide this.

Finally, the control systems that allow guided missiles to fly long distances at great speed to hit very precise targets must guarantee that the information necessary for these on-the-fly calculations is available as fast as it is needed. For situations with no tolerance for error, bandwidth needs to be sufficient for all situations. The missile designer will avoid using systems that "statistically" provide enough bandwidth. The data paths will need to be guaranteed to be sufficient for the application at all times.

Worst case response and latency

Latency is a word commonly used for the delay between the time the input enters a system and the time the output leaves. A real time system is a system that can guarantee that no input's latency is longer than a specified maximum. Not only must the statistical average latency be less than the specified maximum, but the worst case latency must also meet this requirement for strict real time operation. To calculate a worst case latency, the absolute slowest path from the input to the system through the hardware and software must be added together. This means that software conditions must be examined for the entire logical path through the software. Generally the "specified maximum" is dictated by the maximum delay that can be tolerated by the user.

In a real time computer game problems with latency result in a noticeable delay between the time when the mouse is moved and the screen updates. In computer games this happens because the system has more things visible on the screen than it has time to calculate the graphics for before the screen refreshes. While lag is annoying, players can tolerate occasional problems.

In cell phone communications, there is much less tolerance for latency. In general, cell phone users expect for cell phones to be as instantaneous as land line phones. Therefore, the cell phone system will generally throw away any part of the conversation which is delayed too much rather than play the sound late. This way only gaps in the connection rather than sound delays will be heard on the other end. As with bandwidth, the cell phone designer designs the cell phone so that the hardware system will be able to reliably get one sound sample to the other end of the connection in time for the delay not to be noticed by human perception.

Finally, missile systems have far less tolerance for latency than the other applications. In high precision, high reliability systems the worst case must be taken into account because any single failure to meet latency requirements can be disastrous for the entire system. Furthermore, the high speeds of aerospace applications mean that there is less absolute time for calculations to be made.

Questions & Answers

where we get a research paper on Nano chemistry....?
Maira Reply
what are the products of Nano chemistry?
Maira Reply
There are lots of products of nano chemistry... Like nano coatings.....carbon fiber.. And lots of others..
Even nanotechnology is pretty much all about chemistry... Its the chemistry on quantum or atomic level
no nanotechnology is also a part of physics and maths it requires angle formulas and some pressure regarding concepts
Preparation and Applications of Nanomaterial for Drug Delivery
Hafiz Reply
Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
Jyoti Reply
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
yes that's correct
I think
Nasa has use it in the 60's, copper as water purification in the moon travel.
nanocopper obvius
what is the stm
Brian Reply
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
scanning tunneling microscope
how nano science is used for hydrophobicity
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
what is differents between GO and RGO?
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
analytical skills graphene is prepared to kill any type viruses .
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
what is Nano technology ?
Bob Reply
write examples of Nano molecule?
The nanotechnology is as new science, to scale nanometric
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Microcontroller and embedded systems laboratory. OpenStax CNX. Feb 11, 2006 Download for free at http://cnx.org/content/col10215/1.29
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Microcontroller and embedded systems laboratory' conversation and receive update notifications?