Polling (computer science)

Polling (computer science)

Polling, or polled operation, in computer science, refers to actively sampling the status of an external device by a client program as a synchronous activity. Polling is most often used in terms of input/output (I/O), and is also referred to as polled I/O or software driven I/O.

Polling is sometimes used synonymously with busy-wait polling. In this situation, when an I/O operation is required the computer does nothing other than check the status of the I/O device until it is ready, at which point the device is accessed. In other words the computer waits until the device is ready. 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. Although not as wasteful of CPU cycles as busy-wait, this is generally not as efficient as the alternative to polling, interrupt driven I/O.

In a simple single-purpose system, even busy-wait is perfectly appropriate if no action is possible until the I/O access, but more often than not this was traditionally a consequence of simple hardware or non-multitasking operating systems.

Polling is often intimately involved with very low level hardware. 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. That bit represents, at the time of reading, whether a single wire in the printer cable is at low or high voltage. The I/O 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.

ee also

* Pull technology
* Interrupt request


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Computer-assisted reporting — describes the use of computers to gather and analyze the data necessary to write news stories. The spread of computers, software and the Internet changed how reporters work. Reporters routinely collect information in databases, analyze public… …   Wikipedia

  • Computer-assisted web interviewing — Sociology …   Wikipedia

  • Multiple asynchronous periodic polling — (MAPP) is a synchronization method used primarily in Computer Science. This method is similar to periodic polling. In MAPP, two or more periodic polling handlers (such as using multiple timers) are applied to form a single aggregate polling… …   Wikipedia

  • History of science — History of science …   Wikipedia

  • social science — social scientist. 1. the study of society and social behavior. 2. a science or field of study, as history, economics, etc., dealing with an aspect of society or forms of social activity. [1775 85] * * * Any discipline or branch of science that… …   Universalium

  • Поллинг — (англ. Polling, нем. Polling) может означать: Техника en:Polling (computer science) (поллинг) вариант опроса готовности устройств. Альтернатива использованию прерываний. Населенные пункты В Германии Поллинг (Мюльдорф на Инне) Поллинг ( …   Википедия

  • Poll — or polling may refer to:Figurative head counts* Polling, voting * Opinion poll * The polls, polling stations * Polling (computer science), sequential interrogation of devicesOther* Poll (livestock), the top of the head * Polling or pollarding,… …   Wikipedia

  • Direct memory access — (DMA) is a feature of modern computers that allows certain hardware subsystems within the computer to access system memory independently of the central processing unit (CPU). Without DMA, the CPU using programmed input/output is typically fully… …   Wikipedia

  • Busy waiting — In software engineering, busy waiting or spinning is a technique in which a process repeatedly checks to see if a condition is true, such as waiting for keyboard input or waiting for a lock to become available. It can also be used to delay… …   Wikipedia

  • Boucle de consultation — Demande de traduction Polling (computer science) → …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”