What is the closest to ConcurrentHashMap and NavigableMap in Java?

Jacek Furmankiewicz jacek99 at gmail.com
Fri Nov 15 10:16:16 PST 2013


On Friday, 15 November 2013 at 17:46:41 UTC, Russel Winder wrote:
> The trend in the JVM-verse is very much "if you use 
> synchronized or an
> explicit lock, and you are not creating a core library data 
> structure,
> you are doing it wrong". The background is that the whole 
> purpose of a
> lock it to control concurrency and thus stop parallelism. 
> Applications
> programmers should never have to use a lock. ConcurrentHashMap, 
> and
> thread safe queues are two consequences of all this.

True, concurrency in Java is really simple these days (especially 
with the Executors framework that Python 3 pretty much copies 
verbatim).

taskPool looks like the closest equivalent in D that I could find.


More information about the Digitalmars-d-learn mailing list