GATE Computer ScienceHardGATE CS
A fully associative cache has 3 lines (one word each). The reference string 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 6, 1, 3, 6, 2, 5, 1, 4 is served. By how many misses does LRU replacement exceed the optimal (Belady/OPT) replacement policy?
- A. 5
- B. 3
- C. 4
- D. 2
Correct answer: B. 3
Simulation gives 14 misses for LRU and 11 for OPT (which always evicts the line whose next use is farthest in the future). The difference is 3.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A DDR-style DRAM needs tRP = tRCD = CL = 15 ns, and a burst that fills one cache line takes 10/3 ns. A row-buffer hit costs CL + burst; a…
- A write-back, write-allocate cache is direct mapped with 4 lines of one word (line = address mod 4). Starting empty, it serves these…
- Twenty-eight 32-bit numbers are added with a tree of carry-save adders (3:2 compressors) that reduces every group of three operands to…
- A direct-mapped write-back cache of 8 KB has 64-byte blocks and each block is divided into 4 sub-blocks of 16 bytes with their own valid…
- A loop body occupies the 160 bytes from address 0x1000 to 0x109F and runs 100 iterations. The instruction cache is direct mapped, 128…
- The 16-bit multiplier 0x6DB6 (0110 1101 1011 0110) is used by a Booth multiplier. Radix-2 Booth recoding performs one add or subtract for…