GATE CS 2022 | Question 24

Computer Organization & Architecture › Memory Hierarchy · MSQ · 1 mark · Answer: A, B, D

  1. Question 24Computer Organization & Architecturemsq1 mark
    WB is a write-back and WT a write-through set-associative cache (LRU). Which statements are FALSE?
    • A.
      Each cache block in WB and WT has a dirty bit.
      ✓
    • B.
      Every write hit in WB leads to a data transfer from cache to main memory.
      ✓
    • C.
      Eviction of a block from WT will not lead to data transfer from cache to main memory.
    • D.
      A read miss in WB will never lead to eviction of a dirty block from WB.
      ✓

    Answer: A, B, D

    Solution

    Answer: (A), (B) and (D) - (A) FALSE: write-through (WT) blocks are never dirty, so WT needs no dirty bit. - (B) FALSE: in write-back, a write hit only updates the cache and sets the dirty bit; it does NOT transfer to memory each time. - (C) TRUE: WT blocks are clean, so eviction needs no write-back. - (D) FALSE: a read miss in WB can evict the LRU block, which may be dirty (then it is written back).

More GATE PYQ on Memory Hierarchy

All GATE CS Computer Organization & Architecture PYQ →

Attempt GATE CS 2022 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →