Re: help
- From: Bart van Ingen Schenau <bart@xxxxxxxxxxxxxxx>
- Date: Thu, 10 May 2007 20:51:26 +0200
Keith Thompson wrote:
Other than in some embedded systems where the CPU is running one andThe only system where a busy loop can be acceptable would be a
only one program, using a busy loop to wait for a specified period of
time is, as far as I can tell, *never* a good idea.
mains-powered embedded device running a single-threaded program.
I think those devices are becoming vanishingly rare.
For battery-powered embedded devices, a busy loop is an extremely bad
idea, because it will significantly reduce the time before the
batteries have to be replaced/recharged.
Bart v Ingen Schenau
--
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://www.eskimo.com/~scs/C-faq/top.html
c.l.c++ FAQ: http://www.parashift.com/c++-faq-lite/
.
- Follow-Ups:
- Re: help
- From: Flash Gordon
- Re: help
- References:
- Prev by Date: Re: Function inp / outp
- Next by Date: Re: gets() is dead
- Previous by thread: Re: help
- Next by thread: Re: help
- Index(es):
Relevant Pages
|
|