Let and be two set associative cache organizations that use algorithm for cache block replacement. is a write back cache and is a write through cache. Which of the following statements is/are
View worked solution
Answer: A;B;D
We need to identify the FALSE statements among the given options regarding Write-Back () and Write-Through () cache organizations.
Analysis of Statements:
-
Statement A: Each cache block in and has a dirty bit.
Status: FALSE
A dirty bit is used to track whether a cache block has been modified relative to main memory.- In a Write-Back () cache, updates are made only to the cache, so a dirty bit is necessary.
- In a Write-Through () cache, every write updates both the cache and the main memory simultaneously. Since the cache and main memory are always consistent, does not require a dirty bit.
-
Statement B: Every write hit in leads to a data transfer from cache to main memory.
Status: FALSE
In a Write-Back () cache, a write hit only updates the cache block and sets its dirty bit to . The data is transferred to main memory only when that dirty block is evicted. It does not trigger an immediate transfer on every write hit. -
Statement C: Eviction of a block from will not lead to data transfer from cache to main memory.
Status: TRUE
In a Write-Through () cache, main memory is always kept up-to-date with the cache. Therefore, when a block is evicted to make room for a new block, no data needs to be written back to main memory. -
Statement D: A read miss in will never lead to eviction of a dirty block from
Status: FALSE
When a read miss occurs in a cache, the requested block must be brought from main memory into the cache. If the target cache set is already full, an existing block must be evicted. If the selected victim block is dirty, it must be written back to main memory. Thus, a read miss can indeed lead to the eviction of a dirty block.
Conclusion:
The false statements are A, B, and D.
Free practice · Your answers on this page are not saved.
