What are the benefits of using interrupts rather than polling? Use the touch pan
ID: 3905440 • Letter: W
Question
What are the benefits of using interrupts rather than polling?
Use the touch panel display as an example.
Explanation / Answer
When some event needs attention of the system then a signal is generated and being sent to the processor for the required information the signal that is being generated is known as interrupt. The process then saves the instance of current working task and handles for whatever interrupt is being generated.
When the computer or other controlling devices waiting for an external device for checking it's completeness then the process is being termed as polling. For example computer waits for another character to be entered by user and then display on screen.
The main advantage of interrupts over polling is system can perform another task while handling particular event. Interrupts are very helpful in various systems if we have to perform multiple tasks at the same time like (I/O, scheduling etc.) Here we can also get to know what the processor is doing as all activities are being divided on the basis of timer interrupts which is part of interrupt. Hence we can say that for any particular system interrupt is more beneficial than polling.
In touch panel display if process continously waiting for the user input then how other process will get processor and time for execution that's why keep an interrupt that only respond when needed hence in this manner we can say that interrupts are better choice.
*If you have any problem with the answer or want me to edit the answer just let me know in the comments and i will try to get on it as soon as possible. Do give a plus if this answer helps.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.