Talk:Polling (computer science)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Computing (Rated Stub-class)
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Stub-Class article Stub  This article has been rated as Stub-Class on the project's quality scale.
 ???  This article has not yet received a rating on the project's importance scale.
Note icon
This article has been automatically rated by a bot or other tool as Stub-Class because it uses a stub template. Please ensure the assessment is correct before removing the |auto= parameter.

Another Example[edit]

In a computer, the CPU asks the hard disk for some data. Now there are many techniques to know when the hard disk is ready so we can retrieve that data. Polling is one of this techniques and consist in continuously ask the hard drive when this data is ready. —Preceding unsigned comment added by (talkcontribs) 15:24, August 3, 2006

Broaden scope?[edit]

The accompanying article should probably be expanded and renamed from Polling (computer science) to (probably) Polling (electronics), a title that also includes the closely related polling in electronics, fire alarms, and (probably) telecommunications. (The last is doubtful only bcz it would also apply to non-electronic com systems like optical telegraphy.) If there is a need to distinguish among polling in those areas, to the extent of separate articles, that may emerge in writing the overall article.
I credit a colleague (whom i haven't troubled to identify) for drawing my attention to this point. They asserted it using -- mistakenly, since "poll" is not used in those articles -- the Dab Poll.
--Jerzyt 17:21, 17 March 2008 (UTC)

I think computer science is correct - the difficulty is that computer science has traditionally covered a lot of material that is now unknown to computer programmers and only seen in electrical engineering. Note that polling is pretty much something that only occurs in a device with a microprocessor; even though this might involve a tiny cheap piece of hardware, this would have counted as a significant computer in the early days of computer science. Polling is essentially a software concept, and originates within computer science from the time the field was much more concerned with low level issues; when computer scientists programmed in assembler and electrical engineers generally built analog circuits. (talk) 12:31, 22 April 2008 (UTC)snaxalotl

It's used in broader ways in modern computer science as well, to refer to basically anything that periodically checks (polls) for data or a condition. For example, a common setup of computer-music systems is for a computation thread to generate music, which it puts into queue; a second thread polls the queue periodically to see if there are things to output. (An alternative design uses semaphores or something similar to wake up the second thread instead of having it poll.) From that viewpoint, polling a physical device is just a special case. --Delirium (talk) 06:41, 3 May 2008 (UTC)