DMD 1.022 and 2.005 releases - what's wrong with threading?

David Brown dlang at davidb.org
Sun Oct 7 11:03:42 PDT 2007


On Sun, Oct 07, 2007 at 10:57:31AM -0700, Walter Bright wrote:
> David Brown wrote:
>>   - 'pause/resume' is not a useful thread primitive.  As we've seen by
>>   sample code, just doing simple things is dreadfully difficult, and
>>   very easy to get wrong, having deadlocks, starvation, and other
>>   issues.
>
> The main reason for the existence of pause/resume is so the garbage 
> collector can pause all the threads, do a gc sweep, then resume them.

I don't think they should go away :-)  I just think there needs to be
something else to use for synchronization.  Just because it is possible to
synchronize with pause/resume, doesn't mean one should.

David



More information about the Digitalmars-d mailing list