GATE Computer ScienceVery hardGATE CSE
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 occur with 3 lines and with 4 lines respectively?
- A. 10 and 8
- B. 9 and 10
- C. 10 and 9
- D. 9 and 9
Correct answer: B. 9 and 10
FIFO shows Belady's anomaly: 9 misses with 3 lines but 10 with 4 lines (LRU would give 10 and 8).
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- 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…
- A TLB access takes 5 ns, a main-memory access 80 ns, and the TLB hit ratio is 95%. On a TLB miss, a two-level page table walk needs two…