GATE-2024-CS1(Forenoon)
March 23, 2025
GATE 2022
March 24, 2025
GATE-2024-CS1(Forenoon)
March 23, 2025
GATE 2022
March 24, 2025

GATE-2024-CS1(Forenoon)

Question 53
Consider two set-associative cache memory architectures: WBC, which uses the write back policy, and WTC, which uses the write through policy. Both of them use the LRU (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
A
A read miss in WBC never evicts a dirty block
B
A read miss in WTC never triggers a write back operation of a cache block to main memory
C
A write hit in WBC can modify the value of the dirty bit of a cache block
D
A write miss in WTC always writes the victim cache block to main memory before loading the missed block to the cache
E
Question 53 Explanation: 
(B) A read miss in WTC never triggers a write back operation of a cache block to main memory

In a Write Through Cache (WTC), every write operation to the cache is immediately propagated to main memory. However, a read miss only involves reading data from main memory into the cache; it does not trigger any write back operations. Therefore, a read miss in WTC does not cause any write back operation. This statement is true.

(C) A write hit in WBC can modify the value of the dirty bit of a cache block

In a Write Back Cache (WBC), a write hit means that the data to be written is already present in the cache. When a write occurs, the value of the dirty bit for the block is set to indicate that the block has been modified. Thus, a write hit in WBC will modify (set) the dirty bit of the cache block. This statement is true.

Correct Answer: C
Question 53 Explanation: 
(B) A read miss in WTC never triggers a write back operation of a cache block to main memory

In a Write Through Cache (WTC), every write operation to the cache is immediately propagated to main memory. However, a read miss only involves reading data from main memory into the cache; it does not trigger any write back operations. Therefore, a read miss in WTC does not cause any write back operation. This statement is true.

(C) A write hit in WBC can modify the value of the dirty bit of a cache block

In a Write Back Cache (WBC), a write hit means that the data to be written is already present in the cache. When a write occurs, the value of the dirty bit for the block is set to indicate that the block has been modified. Thus, a write hit in WBC will modify (set) the dirty bit of the cache block. This statement is true.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x