0
0
Operating Systemsknowledge~20 mins

Programmed I/O vs interrupt-driven I/O in Operating Systems - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
I/O Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Difference in CPU usage between Programmed I/O and Interrupt-driven I/O

Which statement correctly describes how the CPU is used in Programmed I/O compared to Interrupt-driven I/O?

AIn Programmed I/O, the CPU performs other tasks and ignores the device, while in Interrupt-driven I/O, the CPU waits actively for the device.
BBoth Programmed I/O and Interrupt-driven I/O require the CPU to wait actively for the device at all times.
CIn Programmed I/O, the CPU waits actively for the device, while in Interrupt-driven I/O, the CPU can perform other tasks until interrupted.
DBoth Programmed I/O and Interrupt-driven I/O allow the CPU to perform other tasks without waiting.
Attempts:
2 left
💡 Hint

Think about whether the CPU is busy checking the device or free to do other work.

📋 Factual
intermediate
2:00remaining
Main disadvantage of Programmed I/O

What is the main disadvantage of using Programmed I/O compared to Interrupt-driven I/O?

AIt requires complex hardware to handle interrupts.
BIt causes inefficient CPU usage due to constant polling of the device.
CIt cannot handle multiple devices simultaneously.
DIt causes data loss because the CPU ignores device signals.
Attempts:
2 left
💡 Hint

Consider what happens when the CPU keeps checking the device repeatedly.

🔍 Analysis
advanced
2:00remaining
Impact on system responsiveness

How does Interrupt-driven I/O improve system responsiveness compared to Programmed I/O?

ABy allowing the CPU to respond immediately to device signals without wasting time polling.
BBy making the CPU poll devices more frequently to detect readiness faster.
CBy using a dedicated CPU core solely for I/O operations.
DBy disabling all other CPU tasks until the I/O operation completes.
Attempts:
2 left
💡 Hint

Think about how the CPU reacts to device readiness in both methods.

Comparison
advanced
2:00remaining
Which I/O method is better for high-speed devices?

Considering device speed and CPU efficiency, which I/O method is generally better for high-speed devices and why?

AInterrupt-driven I/O, because it reduces CPU idle time and handles frequent device signals efficiently.
BProgrammed I/O, because it allows the CPU to poll the device continuously for immediate data transfer.
CProgrammed I/O, because it uses interrupts to notify the CPU only when data is ready.
DInterrupt-driven I/O, because it disables the CPU until the device finishes its operation.
Attempts:
2 left
💡 Hint

Think about how frequent device signals affect CPU workload in each method.

Reasoning
expert
2:00remaining
Effect of Programmed I/O on multitasking systems

In a multitasking operating system, what is a likely effect of using Programmed I/O instead of Interrupt-driven I/O?

AProgrammed I/O enhances multitasking by prioritizing I/O tasks over CPU tasks automatically.
BProgrammed I/O improves multitasking by allowing the CPU to switch tasks only after device polling completes.
CProgrammed I/O has no effect on multitasking because I/O operations run independently of CPU scheduling.
DProgrammed I/O can cause poor multitasking performance because the CPU spends too much time polling devices, delaying other tasks.
Attempts:
2 left
💡 Hint

Consider how CPU time spent polling affects the ability to run multiple tasks smoothly.