Programming Windows D Examples are now Online!

Jimmy Cao jcao219 at gmail.com
Thu Jun 23 01:04:55 PDT 2011


On Thu, Jun 23, 2011 at 2:56 AM, Kagamin <spam at here.lot> wrote:

> Andrej Mitrovic Wrote:
>
> > I just ran into some odd stdout corruption issue while doing parallel
> > builds, take a look:
> >
> > http://i.imgur.com/pgC4o.png
> >
> > I've tried building again and it was gone, it looks like an appearance
> > of a heisenbug. There might be some bug lurking somewhere in
> > std.parallelism, but it's hard to say when I can't recreate it.
>
> 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?
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20110623/28283b5c/attachment.html>


More information about the Digitalmars-d-announce mailing list