Ted Yu
2014-01-14 14:55:36 UTC
Hi,
I want to get some opinion on the effectiveness of synchronization on ConcurrentHashMap in the following scenario where onlineServers is a ConcurrentHashMap:
synchronized (this.onlineServers) { return Collections.unmodifiableMap(this.onlineServers); }
Can synchronized be safely removed ?
Thanks
I want to get some opinion on the effectiveness of synchronization on ConcurrentHashMap in the following scenario where onlineServers is a ConcurrentHashMap:
synchronized (this.onlineServers) { return Collections.unmodifiableMap(this.onlineServers); }
Can synchronized be safely removed ?
Thanks