www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/23/09:34:01

Date: Sun, 23 Aug 1998 16:31:20 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Endlisnis <s257m AT unb DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Realtime & DJGPP
In-Reply-To: <35D98DCD.A4785E2@unb.ca>
Message-ID: <Pine.SUN.3.91.980823163029.1451E-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019