CS FundamentalsHardGATE CS
An interrupt handler is split into a top half and a bottom half (e.g. softirq, tasklet, workqueue). Why?
- A. The bottom half runs in user mode
- B. The top half runs only on boot
- C. It lets the handler sleep while holding a spinlock
- 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
- Which is a valid reason for a device driver to use polling instead of interrupts?
- What is the main purpose of the I/O MMU (IOMMU) in modern systems?
- A process holds a spinlock and is preempted on a single-CPU system; the next scheduled thread tries to take the same spinlock. What…
- Read-copy-update (RCU) is used for read-mostly kernel data. What is its key idea?
- A reader-writer lock is used where reads are 99% of operations and each read is very short. Why might it perform WORSE than a plain mutex…
- A seqlock lets readers proceed without blocking writers. A reader reads the sequence number, reads the data, then rereads the sequence…