91
I am learning about the CopyOnWriteArrayList class.
- What is the purpose of copying a new array?
- Is it for other threads to read the array?
So if a system has high concurrency and most of the threads' actions are reading not writing, it is better to use CopyOnWriteArrayList.