Cache memory is placed between which two units of a computer?
- A.The CPU and the main memory
- B.The main memory and the hard disk
- C.The keyboard and the CPU
- D.The CPU and the printer
Show answer
Correct answer: A. The CPU and the main memory
Explanation
The correct answer is A, the CPU and the main memory. Cache is a small block of static RAM that keeps the instructions and data most recently used by the processor. Because it answers in a fraction of the time DRAM takes, it hides the gap between a fast processor and slower main memory; a request satisfied from it is a cache hit and one that is not is a cache miss.
Option B describes a disk buffer or disk cache, a different arrangement and not what the term cache memory means in this chapter. Option C is wrong because input from a keyboard is handled by a controller and a small buffer, not by the CPU cache. Option D is wrong for the same reason on the output side, where a printer has its own buffer and the operating system uses spooling. Remember the levels as well: L1 lies inside each core, L2 next, and a larger L3 is shared between cores.