CS FundamentalsHardGATE CS (PYQ pattern)

A 16-core machine must unmap a page that all cores have in their TLBs. The initiating core sends an inter-processor interrupt to each of the other 15 cores one after another (1 microsecond each to send) and waits until the last core has acknowledged; each remote core takes 3 microseconds after receiving its interrupt to flush the entry and acknowledge. Handling on the initiator itself takes 2 microseconds and is done before sending. What is the total time until the shootdown completes?

  1. A. 17 microseconds
  2. B. 47 microseconds
  3. C. 62 microseconds
  4. D. 20 microseconds

Correct answer: D. 20 microseconds

Initiator work: 2 microseconds. The 15 interrupts are sent serially (15 microseconds); the last core's interrupt is delivered at 2 + 15 = 17 and it acknowledges after 3 microseconds: 20 microseconds. Waiting for each ack in turn would be far slower, which is why shootdowns are batched.

More Operating Systems questions

Exams that ask this topic