Date: Sun, 23 Aug 1998 16:31:20 +0300 (IDT) From: Eli Zaretskii To: Endlisnis cc: djgpp AT delorie DOT com Subject: Re: Realtime & DJGPP In-Reply-To: <35D98DCD.A4785E2@unb.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 18 Aug 1998, Endlisnis wrote: > Eli Zaretskii wrote: > > > I think this is an illusion. Redirecting stdout makes it fully buffered, > > so for small amounts of output, the 16KB buffer holds all the output, and > > the program doesn't really call DOS untill it exits, at which time the > > buffer is flushed. Even if it does call DOS, it does so many more times > > when the output goes to the screen as opposed to a file. > > Isn't the screen i/o buffered as well? (16k?) Or is it the fact of > line-buffering that your commenting about? When stdout goes to the screen, it is line-buffered, so the program will call DOS much more frequently than when it is fully buffered.