Xref: utzoo comp.unix.questions:31097 comp.unix.wizards:25453 Newsgroups: comp.unix.questions,comp.unix.wizards Path: utzoo!utgpu!jmason From: jmason@gpu.utcs.utoronto.ca (Jamie Mason) Subject: Re: talk session Message-ID: <1991May7.155840.14604@gpu.utcs.utoronto.ca> Organization: University of Toronto Computer Science Undergraduate Student References: <1991May7.000521.28186@athena.cs.uga.edu> Date: Tue, 7 May 1991 15:58:40 GMT In article <1991May7.000521.28186@athena.cs.uga.edu> greg@athena.cs.uga.edu (Greg Whitlock) writes: >------------------------>cut here<------------------------------ >/* > * > * scat - written by gordon.edwards@atlantaga.ncr.com > * > * This short program displays the contents of a file with delays > * after each line. . . . > while ((c = getc(fp)) != EOF) > { > printf("%c", c); > for (i = 0; i < delay; i++) > ; > } Do I see a *BUSY WAIT*?!? On a multi-user system like Unix? *OUCH*! How about using usleep? Jamie ... Segmentation fault (core dumped) Written On Tuesday, May 7, 1991 at 11:57:25am EDT