Real-time computing
519 words · 3 min read · 2 sources
Real-time computing means a system that must produce a correct result within a guaranteed time deadline — not just eventually, but by a specific moment. In robotics, missing a deadline is not a performance issue; it can be a safety failure.
The concept concept: Real-time computing means a system that must produce
Difficulty 3/5 · ClassroomA violinist in an orchestra must play the right note at exactly the right instant. Playing it a little flat is bad. Playing it a beat late — even just 200 milliseconds late — is worse, because now the performance has derailed. The correctness of the note and the correctness of its timing are equally important. An answer delivered late is, in a meaningful sen
💡 Think of it like…
Think of it like a household object that does the same job — the underlying idea is the same, just adapted for robots.
Why it matters
Without real-time computing, many concept systems in robotics simply couldn't work.
A violinist in an orchestra must play the right note at exactly the right instant. Playing it a little flat is bad. Playing it a beat late — even just 200 milliseconds late — is worse, because now the performance has derailed. The correctness of the note and the correctness of its timing are equally important. An answer delivered late is, in a meaningful sense, the wrong answer.
This is the defining idea of real-time computing: a system where correctness depends not only on what the computation produces but on when it produces it. A real-time system has explicit time deadlines, and meeting those deadlines is a design requirement, not an aspiration.
Hard, soft, and firm real-time
Not all deadlines are equally unforgiving. Engineers distinguish three categories. In a hard real-time system, missing a single deadline is a system failure — potentially catastrophic. The flight-control computer on a commercial aircraft is hard real-time; a millisecond delay in processing a pilot input could result in a crash. In a soft real-time system, missing deadlines occasionally degrades quality but doesn't break the system — a video call that drops a frame is soft real-time. Firm real-time sits between: missing a deadline makes the result useless (a value that arrived too late has no value) but a single miss doesn't cause harm.
Robotics spans all three. A robot's emergency stop must be hard real-time. A path-planning algorithm computing the next waypoint is often firm. A diagnostic log is soft.
Why standard operating systems aren't enough
A general-purpose operating system like standard Linux is not real-time. It makes no guarantees about when any particular programme will get CPU time. The kernel can decide to do housekeeping, swap memory, or serve another process at any moment, introducing unpredictable delays called jitter. For a word processor, that is fine. For a motor controller that must send a new position command every millisecond, unpredictable jitter can cause the motor to judder, overshoot, or destabilise entirely.
Real-time robots use either dedicated real-time operating systems (RTOSes) like VxWorks or FreeRTOS, or specially patched versions of Linux (such as PREEMPT_RT) that add scheduling guarantees. The ROS 2 framework, widely used in robotics research, is designed with real-time compatibility in mind, unlike its predecessor ROS 1.
Real-time in a robot's body
In a modern robot arm, the motor control loop typically runs at 1,000 Hz — once per millisecond. At that frequency, the controller reads encoder positions, computes the required torque, and outputs motor commands, all within one millisecond. The path planning and sensor fusion layers run at lower frequencies (10–100 Hz), and high-level planning may run at 1 Hz or slower. This layered architecture — with the strictest real-time requirements at the lowest level — is the standard pattern in industrial and research robots alike.
If a robot's brain is a computer that cannot guarantee when it will finish thinking, what architectural tricks let it still behave reliably in a physical world that doesn't pause to wait?
Ask R2 Co-pilot anything you didn't understand about Real-time computing. It'll explain it plainly.
Keep going
A* (A-Star) Pathfinding in Robotics — Complete Guide
A* finds the shortest path between two points on a grid or graph. It is the most-used pathfinding algorithm in…
ConceptAccelerometer in Robotics — Complete Guide
An accelerometer measures linear acceleration along an axis. In robotics, accelerometers detect motion, tilt, …
ConceptActuator
The muscles of a robot — devices that convert electrical or pneumatic energy into mechanical motion.
Last updated · 2026-05-19
Community discussion
0 questions & insightsLoading discussion…
Spotted something off? Report an error →