Navigation and Control

What Is Real-Time Computing? Why Robot Software Must Meet Deadlines.

By Rodolfo Garcia Calderoni, CFA ·

On this pageWhat Is Real-Time Computing?Key TakeawaysHow Does Real-Time Computing Work?Hard vs. Soft Real-Time ComputingReal-Time vs. Fast ComputingWhat Causes Timing Problems?Does Real-Time Computing Guarantee Robot Safety?Frequently Asked QuestionsThe Bottom LineSourcesRelated terms

What Is Real-Time Computing?

Real-time computing is an approach to computing in which correctly completing an operation includes meeting a defined timing requirement.

A real-time system must produce relevant results within deadlines appropriate to its application.

In robotics, timing matters because software controls machines that move and interact with the physical world.

For example, a motor controller may need to calculate and deliver updated commands at regular intervals to maintain stable movement.

A calculation that produces the correct answer too late may no longer be useful.

Key Takeaways

  • Real-time computing emphasizes meeting timing requirements, not simply achieving high average processing speed.
  • Hard and soft real-time systems have different consequences when deadlines are missed.
  • Predictable scheduling, communication, and execution times are important for robot control.

How Does Real-Time Computing Work?

Imagine a robotic joint controller operating at 1,000 updates per second.

Its intended control interval is one millisecond.

During each cycle, the controller reads measurements, performs calculations, and updates motor commands.

The software must complete the necessary work within its available time budget.

If another process unexpectedly delays the controller, it may miss its deadline.

A delayed command can affect movement quality or stability.

Real-time system design attempts to bound such delays through suitable scheduling, resource management, and software architecture.

Hard vs. Soft Real-Time Computing

Hard real-time systems: Missing a specified deadline is considered a failure of the timing requirement.

Soft real-time systems: Occasional missed deadlines may be tolerated, although they can reduce performance.

For example, a safety-related controller may have strict deadlines associated with a protective function.

An application displaying robot status on a dashboard may tolerate occasional delayed updates.

The appropriate requirements depend on the consequences of missing a deadline.

Real-Time vs. Fast Computing

A powerful computer can perform calculations very quickly without guaranteeing predictable timing.

For example, a general-purpose operating system may occasionally delay a task while handling other activities.

A smaller processor running appropriately designed real-time software may provide more consistent execution times.

This is why real-time performance is evaluated using worst-case timing and deadline behavior, not merely processor speed.

What Causes Timing Problems?

Common causes include operating-system scheduling delays, blocking operations, memory allocation, network delays, and competing computing workloads.

For example, allocating memory unpredictably during a time-critical control loop can introduce execution-time variation.

Robotics developers often avoid operations with unbounded delays in critical code paths.

Does Real-Time Computing Guarantee Robot Safety?

No.

Predictable timing can support reliable or safety-related functions, but the complete system still requires appropriate risk assessment, control design, and validation.

A program may execute on time while producing an incorrect command.

Both timing and functional correctness matter.

Frequently Asked Questions

Does every robotics application require hard real-time computing?

No. Different software components have different timing requirements.

Is real-time computing the same as low latency?

No. Low latency describes short delays. Real-time computing emphasizes meeting defined timing constraints predictably.

The Bottom Line

Real-time computing helps ensure that robot software responds within the time available for its task. It is essential when predictable timing matters as much as computational correctness.

Sources

  1. ROS 2 Jazzy: Real-time programming requirements and jitter

Black Scarab Weekly

Follow the physical AI economy

Get Black Scarab news, deep research, and practical analysis in one clear Thursday briefing.

Weekly reporting and deep dives. Unsubscribe anytime. See our privacy notice.