StreakPeaked· Practice

ExamsGATETechnical

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?

  1. A read miss in WBC never evicts a dirty block
  2. A read miss in WTC never triggers a write back operation of a cache block to main memory
  3. A write hit in WBC can modify the value of the dirty bit of a cache block
  4. A write miss in WTC always writes the victim cache block to main memory before loading the missed block to the cache

Correct answer: A write hit in WBC can modify the value of the dirty bit of a cache block

Solution

In a write-back cache (WBC), a write hit occurs when data is written to a cache block that is already present, allowing the dirty bit to be set or modified to indicate that the block has been changed but not yet written back to main memory.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →