[concurrency-interest] Timestamps-based ConcurrentMap

Bob Lee crazybob at crazybob.org
Thu Mar 9 19:19:28 EST 2006

new HashMap(concurrentHashMap).iterator()?


On 3/9/06, Jean Morissette <jean.morissette at gmail.com> wrote:
> Hi,
> In ConcurrentHashMap, iterators are designed to be used by only one
> thread at a time.  However, I would like to have a ConcurrentMap
> implementation where iterators could be used by many threads at time,
> in a consistent way.  These iterators should reflect the state of the
> map at the creation of the iterator, independently of the map update
> operations.
> Is-there a class somewhere that achieve this behaviour?  IMO, it would
> be a nice addition to j.u.concurrent package.  Or, is there any plan
> to create it in the future?
> Otherwise, I will try to develop it myself, maybe by assigning a
> timestamps to each entry and iterator. Or, do you have others
> suggestions/advices?
> Regards,
> Jean
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest

More information about the Concurrency-interest mailing list