Repeat for those .NET gurus who may not know the Java API:
ConcurrentHashMap in Java has atomic methods (i.e. do not require external locking) for general map modification operations, such as:
putIfAbsent(K key, V value)
remove(Object key, Object value)
replace(K key, V value)
It also allows iteration over a keyset without blocking (copying is required at the beginning of the iteration), and operations get()can usually alternate with calls put()without blocking (it uses the IIRC fine-grained blocking ).
Anyway, my question is: Does .NET have an equivalent dictionary implementation?
I assume that in general I would like to know if .NET has a more general set of streaming data collection libraries. Or concurrency utilities in general - equivalent to Doug Lea java.util.concurrent libraries.
source
share