GATE CS 2024 Set 1 | Question 53

Computer Organization & Architecture › Memory Hierarchy · MSQ · 2 marks · Answer: B, C

  1. Question 53Computer Organization & Architecturemsq2 marks
    WBC uses write-back, WTC uses write-through; both use LRU. Which 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
      ✓
    • C.
      A write hit in WBC can modify the dirty bit of a cache block
      ✓
    • D.
      A write miss in WTC always writes the victim block to main memory before loading the missed block

    Answer: B, C

    Solution

    Answer: (B) and (C) - (B) In write-through, every write already updates main memory, so blocks are never dirty and no write-back ever occurs. TRUE. - (C) In write-back, a write hit updates the block and sets its dirty bit (from 0 to 1 if it was clean). TRUE. - (A) FALSE: a read miss in WBC may evict the LRU block, which could be dirty (then it is written back). - (D) FALSE: WTC blocks are never dirty, so no victim write-back is needed on a miss.

More GATE PYQ on Memory Hierarchy

All GATE CS Computer Organization & Architecture PYQ →

Attempt GATE CS 2024 Set 1 in real GATE exam mode

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

Create free account →