0
0
Operating Systemsknowledge~5 mins

Programmed I/O vs interrupt-driven I/O in Operating Systems - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is Programmed I/O?
Programmed I/O is a method where the CPU actively waits and checks the status of an I/O device to see if it is ready for data transfer. The CPU controls the data transfer directly by repeatedly polling the device.
Click to reveal answer
beginner
What is Interrupt-driven I/O?
Interrupt-driven I/O is a method where the I/O device sends a signal (interrupt) to the CPU when it is ready for data transfer. The CPU can perform other tasks and only responds when interrupted by the device.
Click to reveal answer
intermediate
How does CPU usage differ between Programmed I/O and Interrupt-driven I/O?
In Programmed I/O, the CPU is busy waiting and checking the device status, which wastes CPU time. In Interrupt-driven I/O, the CPU can do other work and only stops when interrupted, making better use of CPU time.
Click to reveal answer
intermediate
Which I/O method is more efficient for slow devices and why?
Interrupt-driven I/O is more efficient for slow devices because the CPU does not waste time waiting. It can continue other tasks and only handles the device when it signals readiness.
Click to reveal answer
beginner
What is a disadvantage of Programmed I/O?
A disadvantage of Programmed I/O is that it wastes CPU resources by constantly checking the device status, which can slow down overall system performance.
Click to reveal answer
In Programmed I/O, how does the CPU know when the device is ready?
ABy waiting for a timer
BBy receiving an interrupt signal
CBy using direct memory access
DBy continuously checking the device status
What triggers the CPU to handle data transfer in Interrupt-driven I/O?
AA timer event
BA signal from the I/O device called an interrupt
CContinuous polling by the CPU
DManual user input
Which I/O method allows the CPU to perform other tasks while waiting for the device?
AInterrupt-driven I/O
BProgrammed I/O
CBoth methods
DNeither method
What is a main drawback of Programmed I/O?
AIt cannot handle slow devices
BIt requires complex hardware
CIt wastes CPU time by busy waiting
DIt uses interrupts
Which I/O method is generally better for improving CPU efficiency?
AInterrupt-driven I/O
BBoth are equally efficient
CProgrammed I/O
DNeither improves CPU efficiency
Explain the main difference between Programmed I/O and Interrupt-driven I/O.
Think about how the CPU learns that the device is ready to transfer data.
You got /3 concepts.
    Describe one advantage and one disadvantage of Programmed I/O.
    Consider CPU usage and complexity.
    You got /2 concepts.