GATE Computer ScienceVery hardGATE CSE · UGC NET
A 2-way set-associative cache with 4 sets uses LRU replacement and set = block mod 4. Blocks accessed in order: 1, 5, 9, 2, 6, 1, 5, 3, 7, 2, 10, 1, 9, 5, 6, 2, 14, 1, 5. How many misses occur?
- A. 16
- B. 14
- C. 18
- D. 13
Correct answer: A. 16
Blocks 1, 5, 9 compete in set 1 (blocks 2, 6, 10, 14 in set 2, blocks 3, 7 in set 3); simulating each 2-entry LRU stack gives 16 misses.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A fully associative cache with FIFO replacement serves the block reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many misses…
- A 16-bit instruction format uses 4-bit address fields and the expanding-opcode technique. There are 13 three-address instructions, 40…
- Two 8-bit two's-complement numbers a and b are added with an 8-bit adder. For how many ordered pairs (a, b), where a and b each range over…
- How many distinct 32-bit patterns represent a NaN (quiet or signalling, either sign) in IEEE 754 single precision?
- Memory has 8 low-order interleaved banks; a bank is busy for 6 clock cycles after starting an access, and at most one new access can be…
- A 64-bit virtual address space uses 8 KB pages and 8-byte page-table entries, and every page-table level occupies exactly one page. What…