Skip to content

Concurrent Collection

Rohit Agarwal edited this page Jan 21, 2018 · 2 revisions

Need of Concurrent Collection

  1. Traditional collection object(like ArrayList, HashMap etc) can be accessed by multiple threads simultaneously and there may be chance of data inconsistency problem and hence these are not thread safe.
  2. Already existing thread safe collections(Vector, Hashtable, synchronizedList(), synchronizedSet(), synchronizedMap()) performance wise not up to the mark.
Clone this wiki locally