In _____ method, the word is written to the block in both the cache and main…

2016

In _____ method, the word is written to the block in both the cache and main memory, in parallel.

Answer: A. Write throughAnswer: Write through Explanation: In the write-through method, a write operation updates both the cache and main memory simultaneously. Advantage: Keeps main…

  1. A.

    Write through

  2. B.

    Write back

  3. C.

    Write protected

  4. D.

    Direct mapping

Attempted by 342 students.

Show answer & explanation

Correct answer: A

Answer: Write through

Explanation:

  • In the write-through method, a write operation updates both the cache and main memory simultaneously.

  • Advantage: Keeps main memory consistent with the cache, which simplifies coherence and correctness.

  • Disadvantage: Slower write performance because every write also updates main memory.

  • Contrast with write-back: write-back updates only the cache and writes modified blocks to main memory later (on eviction) using a dirty bit. That is faster for writes but can leave main memory temporarily stale.

  • Other choices are incorrect because they do not describe updating cache and main memory in parallel: write-protected prevents writes, and direct mapping is a placement scheme, not a write policy.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…