Understanding Cache Memory and CPU Hazards
Classified in Computers
Written at on English with a size of 2.83 KB.
1. General Questions (35%)
1.1. (5%) What is the difference between a write-back cache and a write-through cache?
Write-back cache: A store only writes data to the cache and marks the corresponding line as dirty. The modified line is written to the lower level of the memory hierarchy only when it is evicted.
Write-through cache: Data is written to the caches and the memory every time a store is executed.
1.2. (15%) Name the 3 Cs in cache misses and provide a brief explanation for each C.
Compulsory miss: A cache miss caused by the first access, a cold start effect.
Capacity miss: A cache miss due to the capacity limitation. Even with full associativity, it cannot accommodate all the working sets of an application.
Conflict miss: A cache miss that... Continue reading "Understanding Cache Memory and CPU Hazards" »