On Thu, Jun 23, 2011 at 2:56 AM, Kagamin <span dir="ltr"><spam@here.lot></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Andrej Mitrovic Wrote:<br>
<br>
> I just ran into some odd stdout corruption issue while doing parallel<br>
> builds, take a look:<br>
><br>
</div><div>> <a href="http://i.imgur.com/pgC4o.png" target="_blank">http://i.imgur.com/pgC4o.png</a><br>
><br>
> I've tried building again and it was gone, it looks like an appearance<br>
> of a heisenbug. There might be some bug lurking somewhere in<br>
> std.parallelism, but it's hard to say when I can't recreate it.<br>
<br>
</div>console output is unbuffered and stdio loves to call putch. Usually this is ok since one doesn't run multiple applications on the same console simultaneously. And if it does, a program usually makes it in time. It's strange to see interwined characters as if it can't write a character in a context switch time frame. May be a bug in console2?<br>



</blockquote></div><br><div>I don't think console output is unbuffered.  I think it's line-buffered by default.  Although it does differ and vary; I think on Windows std.stdio.write("hello\n") doesn't flush but on Linux it does.</div>