http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46672
Debayan Banerjee <debayanin at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | --- Comment #2 from Debayan Banerjee <debayanin at gmail dot com> 2010-11-26 10:44:45 UTC --- (In reply to comment #1) > Concurrent writes to stdout (any files) invoke undefined behavior. I dont think its undefined. For my compiler it always produces this output. I tried the same on http://ideone.com (dont know which compiler they are using) and it prints the correct output. Also, doesnt each process have its own stdout?