CS FundamentalsHardGATE CS
Which is a valid reason for a device driver to use polling instead of interrupts?
- A. At very high event rates (e.g. a busy 100 Gb network card), interrupt overhead would dominate, so batching by polling (as in NAPI) is cheaper
- B. Polling uses no CPU time at all
- C. Interrupts cannot be used by device drivers
- D. Polling reduces latency for rare events
Correct answer: A. At very high event rates (e.g. a busy 100 Gb network card), interrupt overhead would dominate, so batching by polling (as in NAPI) is cheaper
Interrupt costs scale with event count. Under heavy load, switching to polling mode amortises overhead; under light load interrupts avoid wasted polls.
More Operating Systems questions
- 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…
- A condition-variable based bounded buffer uses a single condition variable cv for both 'not full' and 'not empty', and signals with…