Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A laptop has 8 GiB of RAM. The operating system uses 2.5 GiB. The user then opens four programs that need 3 GiB, 2 GiB, 1.5 GiB and 1.5 GiB.
How much memory is needed in all? How much of it must be held in virtual memory, in GiB and in MiB?
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. The total. GiB.
Step 2. The part that does not fit. GiB must be held in virtual memory.
Step 3. In MiB. MiB.
Answer: 10.5 GiB in all, so 2.5 GiB, or 2560 MiB, goes to virtual memory.
Watch out. Using 1000 gives 2500 MiB, which is wrong. The syllabus uses 1024 for every step between units.
Log in to join the discussion.
Loading…