talk session

Tom Christiansen tchrist at convex.COM
Fri May 10 02:13:18 AEST 1991


>From the keyboard of brnstnd at kramden.acf.nyu.edu (Dan Bernstein):
: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. :-)

Really smart compilers optimize the whole loop away anyway. :-(

--tom
--
Tom Christiansen		tchrist at convex.com	convex!tchrist
		"So much mail, so little time." 



More information about the Comp.unix.wizards mailing list