Just want to make sure about this. If a have a Map object defined like this:
And 4 threads are working on the map object - each thread works on a different key, filling the corresponding list with random values - then i do not have to synchronize it.
Thanks.
Map<Integer, List<Integer>> map = ...
And 4 threads are working on the map object - each thread works on a different key, filling the corresponding list with random values - then i do not have to synchronize it.
Thanks.