...
It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views... Failure to follow this advice may result in non-deterministic behavior.
Synchronize To make a group of statements atomic, synchronize on the original collection object when using synchronization wrappers to enforce atomicity .(CON07-J. Do not assume that a group of calls to independently atomic methods is atomic).
...