next up previous
Next: Event Queues Up: Basic User Interface Previous: Application Structure

Polling and Sampling

In polling,

Generally, polling is inefficient and should be avoided, particularly in time-sharing systems.

In sampling, value of an input device is read and then the program proceeds.



CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab

cs488@cgl.uwaterloo.ca