344:, the polling device or process queries each element on a list in a fixed sequence. Because it waits for a response from each element, a timing mechanism is necessary to prevent lock-ups caused by non-responding elements. Roll call polling can be inefficient if the overhead for the polling messages is high, there are numerous elements to be polled in each polling cycle and only a few elements are active.
47:
417:, or computer that acts as a conduit to transmit messages, polling is not required to avoid chaos on the lines, but it is often used to allow the master to acquire input in an orderly fashion. These poll messages differ from those of the multidrop lines case because there are no site addresses needed, and each terminal only receives those polls that are directed to it.
216:
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
373:
generated by devices or processes to indicate that they need attention, want to communicate, etc. Although polling can be very simple, in many situations (e.g., multitasking operating systems) it is more efficient to use interrupts because it can reduce processor usage and/or bandwidth consumption.
401:
polling arrangement whereby the central computer sends message (called polling message) to a specific terminal on the outgoing line. All terminals listen to the outgoing line, but only the terminal that is polled replies by sending any information that it has ready for transmission on the incoming
354:
Polling can be employed in various computing contexts in order to control the execution or transmission sequence of the elements involved. For example, in multitasking operating systems, polling can be used to allocate processor time and other resources to the various competing processes.
295:. If the host is sending output, it sets the write bit and writes a byte into the data-out register. If the host is receiving input, it reads the controller-written data from the data-in register, and sets the read bit to 0 as the next command.
351:, also referred to as token polling, each element polls the next element in some fixed sequence. This continues until the first element is reached, at which time the polling cycle starts all over again.
329:
is the time in which each element is monitored once. The optimal polling cycle will vary according to several factors, including the desired speed of response and the overhead (e.g.,
358:
In networks, polling is used to determine which nodes want to access the network. It is also used by routing protocols to retrieve routing information, as is the case with EGP (
269:
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.
316:
Once the operations are over, the controller clears the command-ready bit, clears the error bit to show the operation was successful, and clears the busy bit.
64:
200:
is connected via a parallel port, the computer waits until the printer has received the next character. These processes can be as minute as only reading
494:
309:
The controller reads the command register. If the write bit inside is set, it reads from the data-out register and performs the necessary
446:
111:
250:. For example, polling a parallel printer port to check whether it is ready for another character involves examining as little as one
83:
130:
313:
operations on the device. If the read bit is set, data from the device is loaded into the data-in register for the host to read.
90:
426:
68:
97:
258:. That bit represents, at the time of reading, whether a single wire in the printer cable is at low or high voltage. The
394:
262:
instruction that reads this byte directly transfers the voltage state of eight real world wires to the eight circuits (
525:
79:
451:
398:
359:
35:
232:
In a simple single-purpose system, even busy-wait is perfectly appropriate if no action is possible until the
263:
57:
330:
530:
334:
237:
104:
197:
498:
236:
access, but more often than not this was traditionally a consequence of simple hardware or non-
292:
240:
431:
461:
285:
221:
cycles as busy waiting, this is generally not as efficient as the alternative to polling,
201:
193:
151:
306:
When the controller notices that the command-ready bit is set, it sets the busy bit to 1.
196:
to check for its readiness or state, often with low-level hardware. For example, when a
410:
181:
155:
31:
519:
466:
441:
212:
operation is required, the computer does nothing other than check the status of the
471:
414:
406:
370:
247:
205:
159:
30:
This article is about the computer science term. For the mathematical model, see
436:
46:
397:
share a single communication line to and from the computer), the system uses a
192:
Polling is the process where the computer or controlling device waits for an
366:
222:
17:
390:
456:
158:
as a synchronous activity. Polling is most often used in terms of
255:
251:
218:
40:
288:
of the controller until it becomes clear (with a value of 0).
497:. RAD Data Communications/Pulse Supply. 2007. Archived from
291:
When clear, the host writes the command into the command
409:, which, in its simplest form, consists of one central
71:. Unsourced material may be challenged and removed.
277:Polling can be described in the following steps:
180:. A good example of hardware implementation is a
246:Polling is often intimately involved with very
150:, refers to actively sampling the status of an
8:
204:. This is sometimes used synonymously with '
389:In a multidrop line arrangement (a central
266:) that make up one byte of a CPU register.
298:The host sets the command-ready bit to 1.
131:Learn how and when to remove this message
365:An alternative to polling is the use of
483:
208:' polling. In this situation, when an
489:
487:
393:and different terminals in which the
386:is a control-acknowledgment message.
7:
69:adding citations to reliable sources
447:Interrupt request (PC architecture)
25:
27:Process of device status sampling
45:
80:"Polling" computer science
56:needs additional citations for
427:Abstraction (computer science)
284:The host repeatedly reads the
166:), and is also referred to as
1:
547:
452:Integer (computer science)
29:
360:exterior gateway protocol
36:Polling (disambiguation)
34:. For other uses, see
495:"Multi-Drop Polling"
302:Controller actions:
65:improve this article
526:Events (computing)
337:) of the polling.
248:low-level hardware
342:roll call polling
241:operating systems
141:
140:
133:
115:
16:(Redirected from
538:
510:
509:
507:
506:
491:
432:Asynchronous I/O
312:
261:
235:
228:
215:
211:
178:
175:software-driven
171:
165:
136:
129:
125:
122:
116:
114:
73:
49:
41:
21:
546:
545:
541:
540:
539:
537:
536:
535:
516:
515:
514:
513:
504:
502:
493:
492:
485:
480:
462:Pull technology
423:
380:
323:
310:
275:
259:
233:
226:
213:
209:
194:external device
190:
176:
169:
163:
152:external device
137:
126:
120:
117:
74:
72:
62:
50:
39:
28:
23:
22:
15:
12:
11:
5:
544:
542:
534:
533:
528:
518:
517:
512:
511:
482:
481:
479:
476:
475:
474:
469:
464:
459:
454:
449:
444:
439:
434:
429:
422:
419:
379:
376:
331:processor time
322:
319:
318:
317:
314:
307:
300:
299:
296:
289:
280:Host actions:
274:
271:
189:
186:
182:watchdog timer
156:client program
139:
138:
53:
51:
44:
32:Polling system
26:
24:
14:
13:
10:
9:
6:
4:
3:
2:
543:
532:
529:
527:
524:
523:
521:
501:on 2014-02-17
500:
496:
490:
488:
484:
477:
473:
470:
468:
467:select (Unix)
465:
463:
460:
458:
455:
453:
450:
448:
445:
443:
442:Infinite loop
440:
438:
435:
433:
430:
428:
425:
424:
420:
418:
416:
412:
408:
407:star networks
403:
400:
396:
392:
387:
385:
377:
375:
372:
368:
363:
361:
356:
352:
350:
345:
343:
338:
336:
332:
328:
327:polling cycle
320:
315:
308:
305:
304:
303:
297:
294:
290:
287:
283:
282:
281:
278:
272:
270:
267:
265:
257:
253:
249:
244:
242:
239:
230:
224:
220:
207:
203:
199:
195:
187:
185:
183:
179:
172:
161:
157:
153:
149:
148:interrogation
145:
135:
132:
124:
113:
110:
106:
103:
99:
96:
92:
89:
85:
82: –
81:
77:
76:Find sources:
70:
66:
60:
59:
54:This article
52:
48:
43:
42:
37:
33:
19:
531:Input/output
503:. Retrieved
499:the original
472:Signal (IPC)
404:
399:master/slave
388:
384:poll message
383:
381:
378:Poll message
369:, which are
364:
357:
353:
348:
346:
341:
339:
326:
324:
301:
279:
276:
268:
245:
238:multitasking
231:
191:
174:
167:
160:input/output
147:
143:
142:
127:
121:January 2015
118:
108:
101:
94:
87:
75:
63:Please help
58:verification
55:
18:Polling rate
437:Bit banging
349:hub polling
188:Description
520:Categories
505:2014-07-13
478:References
367:interrupts
264:flip flops
91:newspapers
395:terminals
335:bandwidth
273:Algorithm
223:interrupt
206:busy-wait
421:See also
391:computer
293:register
286:busy bit
225:-driven
371:signals
202:one bit
198:printer
168:polled
144:Polling
105:scholar
457:kqueue
411:switch
402:line.
107:
100:
93:
86:
78:
321:Types
254:of a
154:by a
146:, or
112:JSTOR
98:books
333:and
256:byte
84:news
415:hub
405:In
362:).
347:In
340:In
311:I/O
260:I/O
252:bit
234:I/O
227:I/O
219:CPU
217:of
214:I/O
210:I/O
177:I/O
173:or
170:I/O
164:I/O
67:by
522::
486:^
413:,
382:A
325:A
243:.
229:.
184:.
508:.
162:(
134:)
128:(
123:)
119:(
109:·
102:·
95:·
88:·
61:.
38:.
20:)
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.