Software engineering · 5 min
Mars Pathfinder's resets
Learn about fixing software remotely.
What the sources describe
NASA's Mars Pathfinder landed on Mars on 4 July 1997, carrying the small rover Sojourner. A few days later, the lander's computer began resetting itself repeatedly, interrupting data collection.
Engineers at the Jet Propulsion Laboratory recreated the problem on a copy of the system on Earth. They found a problem called priority inversion. A low-priority task collecting weather data held a shared resource needed by a high-priority task. Medium-priority tasks kept interrupting the low-priority one, so the high-priority task waited too long.
A safety feature called a watchdog timer noticed the delay and reset the computer, as it was designed to do. The operating system had a feature called priority inheritance, which temporarily raises the priority of a task holding a needed resource, but it had been turned off.
Engineers sent instructions from Earth to turn the feature on, and the resets stopped. Diagnostic tools left on in the software helped them find the problem. The case is now a classic example of how tasks interacting in unexpected ways can cause failures.
Connecting the ideas
After landing on Mars in 1997, NASA's Pathfinder lander kept resetting because of priority inversion; engineers diagnosed it on a copy on Earth and fixed it remotely by turning on priority inheritance.
The big idea
Test how parts interact, and keep tools to diagnose problems remotely.
Use it in real life
Think of a time a simple task was delayed because you waited for someone else who was busy with less urgent work, such as waiting for a shared car or room. Write down how the situation could be fixed by letting the urgent task go first. Then note how this matches priority inheritance.
Try it
Made-up example: What is priority inversion?
A good answer: when a high-priority task waits for a low-priority task holding a shared resource, while medium tasks keep interrupting.
Quick quiz
1. How did engineers diagnose the problem?
2. What does priority inheritance do?
3. Why did the watchdog timer reset the computer?
Finished reading?
Make this the next Doom video?
Vote for the lessons you'd most like to see turned into a short animated story.
How was this lesson?
No ratings yet — be the first.
Sign in to rateSources
- Mike Jones (1997), What really happened on Mars?, based on JPL engineer Glenn Reeves's account
- Wikipedia overview — Mars Pathfinder
Limitations
Checked against the 1997 account based on JPL engineer Glenn Reeves's report; Wikipedia kept as a second source.
Voice: Debby — Soft and soothing (tap to change)
Debby narration · part 1 of 15
