The future of concurrent programming
David B. Held
dheld at codelogicconsulting.com
Tue May 29 22:41:11 PDT 2007
Mike Capp wrote:
> == Quote from Sean Kelly (sean at f4.ca)'s article
>
>> Transactions are another idea, though the common
>> implementation of software transactional memory
>> (cloning objects and such) isn't really ideal.
>
> Would genuine compiler guarantees regarding const (or invariant, or final, or
> whatever it's called today) reduce the need for cloning?
Word-based STM doesn't require cloning except when necessary to preserve
logical consistency, and then it doesn't require whole-object cloning.
On the other hand, it may not always be as efficient because it only
knows about words and not objects. It's all a trade-off.
Dave
More information about the Digitalmars-d
mailing list