Polling (computer science)
Polling, or interrogation, refers to actively sampling the status of an external device by a client program as a synchronous activity.[src] Polling is most often used in terms of input/output ( ), and is also referred to as polled or software-driven .[src] A good example of hardware implementation is a watchdog timer.[src]
Polling, or interrogation, refers to actively sampling the status of an external device by a client program as a synchronous activity.[src] Polling is most often used in terms of input/output ( ), and is also referred to as polled or software-driven .[src] A good example of hardware implementation is a watchdog timer.[src] ==Description== Polling is the process where the computer or controlling device waits for an external device to check for its readiness or state, often with low-level hardware.[src] For example, when a printer is connected via a parallel port, the computer waits until the printer has received the next character.[src] These processes can be as minute as only reading one bit.[src] This is sometimes used synonymously with 'busy-wait' polling.[src] In this situation, when an operation is required, the computer does nothing other than check the status of the device until it is ready, at which point the device is accessed.[src] In other words, the computer waits until the device is ready.[src] Polling also refers to the situation where a device is repeatedly checked for readiness, and if it is not, the computer returns to a different task.[src] Although not as wasteful of CPU cycles as busy waiting, this is generally not as efficient as the alternative to polling, interrupt-driven .[src] In a simple single-purpose system, even busy-wait is perfectly appropriate if no action is possible until the access, but more often than not this was traditionally a consequence of simple hardware or non-multitasking operating systems.[src] Polling is often intimately involved with very low-level hardware.[src] For example, polling a parallel printer port to check whether it is ready for another character involves examining as little as one bit of a byte.[src] That bit represents, at the time of reading, whether a single wire in the printer cable is at low or high voltage.[src] The instruction that reads this byte directly transfers the voltage state of eight real world wires to the eight circuits (flip flops) that make up one byte of a CPU register.[src] Polling has the disadvantage that if there are too many devices to check, the time required to poll them can exceed the time available to service the I/O device.[src] ==See also== Abstraction (computer science) Asynchronous I/O Bit banging Infinite loop Interrupt request (PC architecture) Integer (computer science) kqueue Pull technology select (Unix) Signal (IPC) ==References== fr:Attente active[src]
21 sentences · 21 cited inline · 1 references stored
References
- Multi-Drop Polling . · retrieved 2025-12-24 · rev 1329389052
Cite this reference
MLA "Multi-Drop Polling ." 2025-12-24. https://en.wikipedia.org/w/index.php?oldid=1329389052. Accessed 30 November 2026.
Chicago "Multi-Drop Polling ." 2025-12-24. https://en.wikipedia.org/w/index.php?oldid=1329389052.
APA encyclopegia.org. (2025). Multi-Drop Polling . Retrieved November 30, 2026, from https://en.wikipedia.org/w/index.php?oldid=1329389052
Cite this article
MLA
"Polling (computer science)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/polling-computer-science. Accessed 30 November 2026.
Chicago
"Polling (computer science)." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/polling-computer-science.
APA
encyclopegia.org. (2025). Polling (computer science). Retrieved November 30, 2026, from https://encyclopegia.org/wiki/polling-computer-science
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON