3 ms·
Because under general case you cannot read from concurrent hashmap unless you make sure that write is not taking place. And to do that we need locks, either exc
by menaerus 2y ago
Because under general case you cannot read from concurrent hashmap unless you make sure that write is not taking place. And to do that we need locks, either exclusive (mutex) or more fine grained locks such as rw-lock.