Weird std.stdio threading bug?

Steven Schveighoffer schveiguy at yahoo.com
Tue Apr 28 06:59:20 PDT 2009


On Tue, 28 Apr 2009 09:51:54 -0400, dsimcha <dsimcha at yahoo.com> wrote:

> == Quote from Steven Schveighoffer (schveiguy at yahoo.com)'s article
>> Have you tried synchronizing on an actual object?  I remember some time
>> back how Walter proposed removing synchronized as you have written it.
>> Not sure what happened for that.
>> The way you have written the code, assuming that the synchronized
>> statement is doing what you think it's doing, the call to writeln should
>> be completely syncrhonous, so multithreading issues or not, it should  
>> work.
>> -Steve
>
> Good idea, still doesn't work.  All of the loops just die after a few  
> iterations,
> leaving me at 0% CPU usage.  This happens on multiple win32 boxes.   
> Could someone
> please test this on some other OS?

Latest compiler? D1 D2?

-Steve



More information about the Digitalmars-d mailing list