What Is Buffered Output?
Buffered output is the practice of accumulating written bytes in an in-memory buffer and sending them to the destination in batches rather than one at a time. Fewer, larger writes are more efficient, but the data is not visible until the buffer is flushed. A crash before a flush can lose the buffered content.
Why it matters
Buffering is why a crashed CI step can show truncated logs that stop short of the actual failure point. Forcing a flush or disabling buffering makes log output appear in real time for debugging.
Related guides
What Is Line Buffering?Line buffering flushes output each time a newline is written, so complete lines appear promptly while still b…
What Is a Pseudo Terminal?A pseudo terminal is a software pair that emulates a hardware terminal, letting programs that expect a termin…
What Is Blocking IO?Blocking IO pauses the calling thread until an input or output operation finishes, so the thread cannot do ot…