talk session

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Fri May 10 00:21:38 AEST 1991


In article <1991May8.194940.13610 at watson.ibm.com> metzger at watson.ibm.com (Perry E. Metzger) writes:
> >|> > 		for (i = 0; i < delay; i++)
> >|> > 			;
> Really, there is ABSOLUTELY NO EXCUSE for busy waiting on a
> timesharing system.

There would be if you had a really, really smart compiler that detected
loops of the above form, timed 100 runs to see how long each loop took,
and stuck in an appropriate usleep() or select() or nap() or poll() for
that machine.

:-)

---Dan



More information about the Comp.unix.questions mailing list