Computer AwarenessHardIBPS SO IT · IBPS PO Mains

Under a write-back cache policy, when is a modified cache block written to main memory?

  1. A. Immediately, on every write to the block
  2. B. Only when the block is about to be replaced, as shown by its dirty bit
  3. C. Only when the program terminates
  4. D. Never; main memory is updated by the DMA controller

Correct answer: B. Only when the block is about to be replaced, as shown by its dirty bit

Write-back marks a changed block 'dirty' and copies it to memory only when it is evicted. Writing on every update is the write-through policy.

हिंदी में

राइट-बैक कैश नीति में, संशोधित कैश ब्लॉक मुख्य मेमोरी में कब लिखा जाता है?

  1. A. तुरंत, ब्लॉक पर प्रत्येक राइट के साथ
  2. B. केवल तब जब ब्लॉक बदला जाने वाला हो, जैसा उसके डर्टी बिट से पता चलता है
  3. C. केवल प्रोग्राम समाप्त होने पर
  4. D. कभी नहीं; मुख्य मेमोरी DMA कंट्रोलर द्वारा अद्यतन होती है

उत्तर: B. राइट-बैक बदले हुए ब्लॉक को ‘डर्टी’ चिह्नित करता है और उसे केवल निष्कासित होने पर मेमोरी में कॉपी करता है। प्रत्येक अद्यतन पर लिखना राइट-थ्रू नीति है।

More Computer Awareness questions

Exams that ask this topic