Code-examples icon indicating copy to clipboard operation
Code-examples copied to clipboard

Polling method advantage

Open AmirAliSobhGol opened this issue 3 years ago • 0 comments

Hi, you haven't specified the advantage of using polling method here: https://github.com/amitkumar50/Code-examples/blob/master/Operating_Systems/Linux/Kernel/Types_of_IO/README.md

an example i can give is when you have a high traffic connection that is sending and receiving packets left and right. if each of them were suppose to cause an interrupt, the cpu would be overwhelmed. the kernel automatically switches to polling in this case. disadvantage with polling is latency and possibly wasted CPU (depending on the case) advantage is lower interrupts, better utilization.

AmirAliSobhGol avatar Mar 09 '21 13:03 AmirAliSobhGol