On 6/23/2011 4:27 AM, Jimmy Cao wrote:
Also, there's nothing in the C standard that says, stdout must be buffered this way or that way or even buffered at all. I believe you can safely assume that stdout is line-buffered in Linux, though, but I'm not sure.
Even so, stdout buffering is done on a global, shared basis. There is not a per-thread buffer.
DMC++ buffers stdout by line if the output is a tty. This is normal practice.