Mail Archives: djgpp/1998/08/23/09:34:01
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.
- Raw text -