Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A video editing program needs more memory than the computer's RAM can hold. The computer keeps working, but it becomes very slow.
Describe what virtual memory is, how it is created and how it is used. Explain why it is necessary, and why the computer slows down.
Primary storage is directly accessed by the CPU. RAM is read and write and volatile, and holds the programs and data in use. ROM is read only and non-volatile, and holds the start-up instructions. Secondary storage is not directly accessed by the CPU and keeps data permanently. Virtual memory is part of secondary storage used as if it were RAM: pages move between RAM and virtual memory when needed. One GiB is 1024 MiB.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. What and how it is created. Virtual memory is part of the secondary storage, on the HDD or SSD, that the operating system sets aside and uses as if it were RAM.
Step 2. How it is used.
Step 3. Why it is necessary. Without it, the program could not be loaded once RAM was full, or the computer could stop working. It lets the computer run more, or larger, programs than its RAM can hold.
Step 4. Why it is slow. Secondary storage is much slower than RAM. When pages move back and forth all the time, the CPU spends much of its time waiting for them.
Answer: virtual memory is part of secondary storage used as RAM. Pages are transferred between RAM and virtual memory when needed. It is necessary so that programs can still run when RAM is full, but it is slow because secondary storage is much slower than RAM.
What if? Fitting more RAM would let the whole program stay in RAM, so far fewer pages would need to move.
Log in to join the discussion.
Loading…