In: Computer Science
What is an interrupt vector? What is polling used for? What are the disadvantages of polling? What is a better way to perform the same job?
An interrupt vector is the memory location of an interrupt handler, which prioritizes interrupts and saves them in a queue if more than one interrupt is waiting to be handled
Polling is the process by which the CPU continuously checks input devices to determine whether or not input data is waiting
According to Business Data Communications and Networking, polling is the continuous checking of other programs or devices by one program or device to see what state they are in, usually to see whether they are still connected or want to communicate. The process of periodically checking status bits to see if it is time for the next I/O operation is called polling. Polling is the simplest way for an I/O device to communicate with the processor. The USB operates strictly on the basis of polling. A device may send a message only in response to a poll message from the host. The CPU checks with each Input device to see if there is any data in cue. The Input device will either respond with no data or pass the data which is in the Input cue