ArticleslgStudy

computer science

Crash-only software

Crash-only software is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Crash-only software rather than just read about it. In short: A crash-only software is a computer program that handle failures by simply restarting, without attempting any sophisticated recovery. Correctly written components of crash-only software can microreboot to a known-good state without the help of a user.

Key takeaways

  • Crash-only software belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Crash-only software to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Crash-only software from memory before moving on to harder problems.

Reference excerpt

A crash-only software is a computer program that handle failures by simply restarting, without attempting any sophisticated recovery. Correctly written components of crash-only software can microreboot to a known-good state without the help of a user. A related recovery technique is the microreboot, which restarts only a faulty fine-grained component rather than rebooting the whole application or server; in an Internet auction application, Candea et al. reported that microreboots recovered most of the same failures as full reboots while reducing recovery time and lost work by about an order of magnitude. Since failure-handling and normal startup use the same methods, this can increase the chance that bugs in failure-handling code will be noticed, except when there are leftover artifacts, such as data corruption from a severe failure, that do not occur during normal startup. Crash-only software also has benefits for end-users. All too often, applications do not save their data and settings while running, only at the end of their use. For example, word processors usually save settings when they are closed. A crash-only application is designed to save all changed user settings soon after they are changed, so that the persistent state matches that of the running machine. No matter how an application terminates (be it a clean close or the sudden failure of a laptop battery), the state will persist.

See also Autosave – Automatic saving function End-to-end principle – Design principle for computer networking Erlang (programming language) § "Let it crash" coding style

References

External links https://web.archive.org/web/20060426230247/http://crash.stanford.edu/

Worked examples

Example 1 — a first encounter with Crash-only software

Start with the simplest possible case. Write down what Crash-only software claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Crash-only software before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Crash-only software ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Crash-only software

In research
Crash-only software appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Crash-only software in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Crash-only software is common in secondary-school and first-year university syllabi. It links to neighbouring topics Operating system technology, Software engineering stubs, so understanding it makes those chapters shorter.
In everyday life
Look for Crash-only software outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Crash-only software” →

How to study Crash-only software in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Crash-only software means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Crash-only software out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Crash-only software in simple terms?

A crash-only software is a computer program that handle failures by simply restarting, without attempting any sophisticated recovery. Correctly written components of crash-only software can microreboot to a known-good state without the help of a user.

Why does Crash-only software matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Crash-only software?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Crash-only software.

Tags

  • Operating system technology
  • Software engineering stubs

Keep exploring