CS FundamentalsHardGATE CS

An interrupt handler is split into a top half and a bottom half (e.g. softirq, tasklet, workqueue). Why?

  1. A. The bottom half runs in user mode
  2. B. The top half runs only on boot
  3. C. It lets the handler sleep while holding a spinlock
  4. D. The top half runs with interrupts limited and must be very short; deferrable work runs later in the bottom half with interrupts enabled

Correct answer: D. The top half runs with interrupts limited and must be very short; deferrable work runs later in the bottom half with interrupts enabled

Keeping the critical, interrupt-disabled part minimal reduces interrupt latency for other devices; heavier processing such as protocol handling is deferred.

More Operating Systems questions

Exams that ask this topic