Polling vs interrupt
Interrupts are asynchronous and triggered by external devices. The CPU does not need to actively check the status bits in this case.
Instead, the device signals the CPU via an interrupt line (e.g., INTR) when it needs attention.
The CPU acknowledges the interrupt after completing the current instruction and services the interrupt using an Interrupt Service Routine (ISR).
Polling:
In polling, the CPU actively checks the status bits of I/O devices to determine if they need attention.
Example: The CPU might repeatedly read a device's status register to see if a flag (like "data ready") is set.
So,polling is done from cpu side to check whether an io device needs attention.
Interrupt is generated by an io device to indicate the CPU's attention required.
Options
1.True. Daisy chaining is a method of assigning priorities to devices in a chain. The device closer to the CPU in the chain has higher priority, as it gets the interrupt acknowledgment signal first.
2.false. a vectored interrupt, the interrupting device provides a unique vector (address of the interrupt service routine) directly to the CPU. Polling is not required.Polling is not required in the typical case of vectored interrupts, even with multiple interrupt sources. However, in certain scenarios where multiple vectored interrupts occur simultaneously, the need for polling might arise.(When it is difficult for CPU to identify which device interrupted it.)
3.True. Polling involves the CPU actively checking the status registers of devices to see if they need service.
4.False. During DMA (Direct Memory Access), the CPU relinquishes control of the bus to the DMA controller. Only one device can be the bus master at a time to prevent bus contention.