Polling

Lex Spoon lex at cc.gatech.edu
Mon Feb 28 01:39:51 UTC 2000


"Charles-A. Rovira" <crovira at wt.net> wrote:
> There is another reason to avoid using polling. It has very little to do with
> optimality but having to do with design.
> 
> Polling assumes a centralized implementation and one CPU controlling
> everything.
> 
> If you try to distribute functionality across servers (even if they're only
> serving up very simple data streams,) you may not be able to poll the system at
> all. Event based designs enable you to design and implement asynchronously
> distributed systems. Something which is impossible with polled designs.
> 



As a matter of fact, Morphic is designed with events.  It only uses
polling at a very low level, when it decides whether a mouse click or
release just happened.



Lex





More information about the Squeak-dev mailing list