Computer Science I / Performance Trade-offs
Practice question · Multiple choice

An operating system gives each program the illusion of having the whole machine to itself. Why is that illusion worth the overhead of maintaining it?

Hints
  1. Ask what a programmer would have to know if there were no such illusion.
  2. What happens when one program writes to a wild pointer, with and without isolation?
Show the answer

D. Because a program need not know what else runs or where its memory sits.

Why

Without the abstraction every program would need to know what else was running and which physical addresses were free, and one stray write would corrupt any other. The overhead is genuine — page walks, TLB misses, context switches — and specialised systems give it up: HFT pins cores and bypasses the kernel's network stack. Worth its price in general, not universally.

Read the lesson: Performance Trade-offs →

Practise Performance Trade-offs

The app has 8 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Performance Trade-offs