Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
Difference in ConcurrentHashMap and synchronized Map
JDK 1.5 introduces some good concurrent collections which is highly efficient for high volumehttp://javarevisited.blogspot.com/2011/04/difference-between-concurrenthashmap.html
Total Hits: 3844
Total Votes: 37 votes
Average Rating: 2.57 out of 5
Category: JAVA/Collections
Description:
The synchronized collections classes, Hashtable and Vector, and the synchronized wrapper classes, Collections.synchronizedMap and Collections.synchronizedList, provide a basic conditionally thread-safe implementation of Map and List. However, several factors make them unsuitable for use in highly concurrent applications for example their single collection-wide lock is an impediment to scalability and it often becomes necessary to lock a collection for a considerable time during iteration to prevent ConcurrentModificationExceptionRating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.22% |
6 |
![]() ![]() |
![]() ![]() 16.22% |
6 |
![]() ![]() ![]() |
![]() ![]() 16.22% |
6 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.22% |
6 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 18.92% |
7 |




16.22%

16.22%

16.22%

16.22%

18.92%