Your explanation is correct.  That is the semantics of Unix stdio buffering as implemented by glibc.  So across a wide variety of languages, you&#x27;ll see a significant performance difference if you are doing lots of writes to the terminal.<p>On the other hand if you <i>didn&#x27;t</i> do this, then interactive terminal programs would be entirely unusable.