ConcurrentHashMap是多線程下,jdk土推薦使用的map結構,功能規(guī)則與HashTable相同,與hashMap不一樣,hashMap允許null作為key/value,而ConcurrentHashMap不可以;
底層實現(xiàn)采用node+cas+紅黑樹實現(xiàn)
ConcurrentHashMap是多線程下,jdk土推薦使用的map結構,功能規(guī)則與HashTable相同,與hashMap不一樣,hashMap允許null作為key/value,而ConcurrentHashMap不可以;
底層實現(xiàn)采用node+cas+紅黑樹實現(xiàn)