Re: help



"osmium" <r124c4u102@xxxxxxxxxxx> writes:
"Keith Thompson" writes:
And using a busy
loop on a shared or multi-processing system, which someone just
learning C is almost certainly using, is antisocial behavior.

My God man, how old are you? The use of main frames in schools went out with
high button shoes. Or at least the 8-track player.

I didn't mention mainframes.

Even on a single-user system (say, a PC running Windows or Linux), a
busy loop will consume CPU resources that could otherwise be used by
other processes.

Other than in some embedded systems where the CPU is running one and
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.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.