CS FundamentalsModerateGATE CS · Amazon/Microsoft SDE MCQ
A device raises 10,000 interrupts per second, and each interrupt costs 50 µs of CPU time to enter, service and return. What fraction of the CPU does interrupt handling take?
- A. 5%
- B. 0.5%
- C. 20%
- D. 50%
Correct answer: D. 50%
10,000 × 50 µs = 0.5 s of CPU per second, i.e. 50%. At such rates polling, interrupt coalescing or DMA with larger blocks is preferred.
More Operating Systems questions
- A file is stored with linked allocation (each block holds a pointer to the next) and nothing is cached. How many disk reads does it take…
- Requests arrive at a server at 20 per second, and Little's law applies in steady state. If on average 6 requests are in the system, what…
- Pages are 4 KB and a process has 3 frames. It runs for (i = 0; i < 1024; i++) for (j = 0; j < 1024; j++) A[i][j] = 0; on an int…
- Which statement about the difference between an unsafe state and a deadlocked state (Banker's algorithm) is correct?
- A 32-bit system uses segmentation with paging. A logical address is (segment s, offset d) with d of 32 bits; within a segment, d is split…
- A thread library offers only kernel-level threads (one-to-one). Which change makes thread creation and switching cheapest without losing…