171 |
|
* concurrent collection is thread-safe, but not governed by a |
172 |
|
* single exclusion lock. In the particular case of |
173 |
|
* ConcurrentHashMap, it safely permits any number of |
174 |
< |
* concurrent reads as well as a tunable number of concurrent |
174 |
> |
* concurrent reads as well as a large number of concurrent |
175 |
|
* writes. "Synchronized" classes can be useful when you need |
176 |
|
* to prevent all access to a collection via a single lock, at |
177 |
|
* the expense of poorer scalability. In other cases in which |