GC, the simple solution

Sean Kelly sean at f4.ca
Wed Jun 14 15:49:49 PDT 2006


Lionello Lunesu wrote:
> Interesting indeed!
> 
> I'm currently reading Boehm's article "Threads Cannot be Implemented as a 
> Library". I wonder if this means that threads should become primitives of 
> some sort [in D] ?

It's been a while since I read that article, but I think D already has 
enough in-language recognition of threading issues to escape most/all of 
the problems Boehm mentions: Thread is a standard library component 
rather than a third-party component, synchronized is available for 
mutual exclusion, and volatile (plus perhaps inline asm code) is enough 
to manage lock-free work.  A more robust multithread-aware memory model 
would be good to have, but it's a sticky enough issue that I think 
Walter is right for waiting on that for now.


Sean



More information about the Digitalmars-d mailing list