Programming Windows D Examples are now Online!

Johannes Pfau spam at example.com
Wed Jun 22 13:49:52 PDT 2011


Walter Bright wrote:
>On 6/22/2011 12:01 PM, Andrej Mitrovic wrote:
>> I just ran into some odd stdout corruption issue while doing parallel
>> builds, take a look:
>
>stdout is shared, but the atomic units of output are where the calls
>to it are, and are interleaved otherwise. For example, a single call
>to printf locks stdout for the duration of the printf.

C printf is atomic? Didn't know that.
What happens when multiple processes are spawned with system()? Is
their IO output still synchronized?

-- 
Johannes Pfau



More information about the Digitalmars-d-announce mailing list