TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ANDY BURNS
from: MICHAEL J. MAHON
date: 2018-02-25 02:39:00
subject: Re: How to use while loop

Andy Burns  wrote:
> ewholz@gmail.com wrote:
>
>> Do I save anything using interrupt vs. the while loop code?
>
> It depends if the code could do something else useful during the 99.99%
> of the time it *isn't* noticing the door become open or closed ...
>
>

...and on how easy, or hard, it is to do that “something else” while
maintaining a polling rate adequate to the application.

--
-michael - NadaNet 3.1 and AppleCrate II:  http://michaeljmahon.com

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.