🔮

Predict: Memory Scenarios

Think about what happens in different memory situations before revealing the answers.

How to use this activity:

  1. Read each scenario carefully
  2. Think about what will happen based on your understanding
  3. Click "Reveal Answer" to check your prediction
  4. Read the explanation to deepen your understanding

Scenario 1: Power Cut

You're working on an essay in Word. You haven't saved it yet. Suddenly, there's a power cut and your computer turns off.

What happens to your unsaved essay? Why?

Scenario 2: Computer Boot

You press the power button on your computer. The RAM is empty (it was off). The hard drive contains Windows, but the CPU can't read from the hard drive directly at startup.

How does the computer know what to do when you first turn it on?

Scenario 3: Too Many Programs

Your computer has 8GB of RAM. You open:

  • Chrome with 20 tabs (using 4GB)
  • Photoshop with a large image (using 3GB)
  • Spotify (using 0.5GB)
  • A video game (needs 2GB)

That's 9.5GB total, but you only have 8GB RAM!

What happens? Does the computer crash?

Scenario 4: Disk Thrashing

A computer with only 4GB RAM is running many programs. The user notices:

  • The hard drive light is constantly on
  • A whirring sound from the hard drive
  • Everything is extremely slow
  • Even moving the mouse is laggy

What is causing this problem?

Scenario 5: Cache Benefits

A CPU needs to access the same piece of data 1000 times during a calculation.

  • Reading from RAM takes 100 nanoseconds
  • Reading from cache takes 1 nanosecond

How much time does cache save if the data is found in cache 99% of the time?

Scenario 6: ROM Update

A manufacturer discovers a bug in the BIOS that could cause problems. They release a "BIOS update".

Wait - if ROM is "Read Only", how can it be updated?

Scenario 7: SSD vs HDD Virtual Memory

Two identical computers both run out of RAM and start using virtual memory. The only difference:

  • Computer A has an HDD (spinning hard drive)
  • Computer B has an SSD (solid state drive)

Which computer will perform better? Why?

Scenario 8: Memory Hierarchy

The CPU needs to read a piece of data. It checks in this order:

  1. L1 Cache - NOT FOUND
  2. L2 Cache - NOT FOUND
  3. L3 Cache - NOT FOUND
  4. RAM - NOT FOUND

Where will the data come from next? What is this situation called?

Scenario 9: Gaming Computer

A gamer is building a new PC. They have a choice:

  • Option A: 8GB RAM + 16GB virtual memory
  • Option B: 16GB RAM + 8GB virtual memory

Both have 24GB total "memory" available.

Which option would give better gaming performance? Why?

Scenario 10: Smartphone Memory

Your smartphone has 6GB RAM but no virtual memory (most phones don't use it). You try to open too many apps.

What happens when the phone runs out of RAM?

← Back to Topic Next: Worked Example →