Code-examples
Code-examples copied to clipboard
Polling method advantage
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.