CopyOnWriteArrayList and CopyOnWriteArraySet
Published by Kaustubh Saha on January 1st, 2019
CopyOnWriteArrayList
CopyOnWriteArrayList uses an interesting technique to make it thread-safe without a need for synchronization - all mutative operations (add, set, and so on) are implemented by making a fresh copy of the underlying array. This is or...