What is the closest to ConcurrentHashMap and NavigableMap in Java?

ilya-stromberg ilya-stromberg-2009 at yandex.ru
Fri Nov 15 10:05:05 PST 2013


On Friday, 15 November 2013 at 17:46:41 UTC, Russel Winder wrote:
> If D programmers are being told to use locks in applications 
> code, then
> the D programming model and library are failing. Or the advice 
> is
> wrong ;-)

It's possible to implement lock-free data structures in D, you 
can use core.atomic
http://dlang.org/phobos/core_atomic.html

But it's REALLY difficult to implement and it can be SLOWER than 
Mutex version (not only in D, it depends from usage situation).


More information about the Digitalmars-d-learn mailing list