GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 69

Interrupt overhead versus polling

Computer Organization & Architecture · Input/Output, DMA & Interrupts · Full GATE CSE 2005 paper

GATE 2005, Q69 2 marks · MCQ
Report issue

Input/Output, DMA & Interrupts

Question 69, GATE 2005: A10 KB/s device transfers bytes individually. Interrupt overhead 4 microseconds; byte-transfer time to CPU/memory negligible. Minimum intended performance gain using interrupts rather than program-controlled polling? A15; B25; C35; D45. Interpret as CPU occupation ratio and state unit convention.
Question 69, GATE 2005: A10 KB/s device transfers bytes individually. Interrupt overhead 4 microseconds; byte-transfer time to CPU/memory negligible. Minimum intended performance gain using interrupts rather than program-controlled polling? A15; B25; C35; D45. Interpret as CPU occupation ratio and state unit convention.
Tap to enlarge
Your answer
Answer & solution

Answer: B, approximately 25 (no official key was published)

Polling occupies the CPU throughout the interval between consecutive bytes. Using the decimal convention 10 KB/s=10000 bytes/s, this interval is 100 microseconds, whereas interrupt servicing costs 4 microseconds. CPU-time cost ratio is 100/4=25, option B. This compares CPU occupation, not device throughput, which is unchanged. With binary KB the exact ratio is 1/(10240×4×10−6)=24.4140625; 25 is the intended rounded/conventional option.

At 10000 bytes/s a byte arrives every 100 microseconds. Polling continually tests readiness and occupies the CPU for that whole interval. Interrupt service instead occupies only 4 microseconds per byte; the rest can run unrelated work. Their CPU cost ratio is 100/4=25. This is not a 25-fold faster physical device. Binary KB changes the exact ratio, hence the declared convention matters.

Original paper, page 9