Java并发集合.pptVIP

  • 5
  • 0
  • 约2.76千字
  • 约 21页
  • 2017-06-21 发布于湖北
  • 举报
Java并发集合

Java并发集合 并发集合类 ConcurrentHashMap ConcurrentLinkedQueue ConcurrentSkipListMap ConcurrentSkipListSet CopyOnWriteArrayList CopyOnWriteArraySet ArrayBlockingQueue LinkedBlockingQueue PriorityBlockingQueue LinkedBlockingDeque LinkedTransferQueue DelayQueue SynchronousQueue ConcurrentHashMap ConcurrentHashMap是线程安全且高效的HashMap ConcurrentHashMap的锁分段技术 ConcurrentHashMap 定位Segment final SegmentK,V segmentFor(int hash) { return segments[(hash segmentShift) segmentMask]; } 定位HashEntry HashEntryK,V getFirst(int hash) { HashEntryK,V[] tab = table; return tab[hash (tab.length - 1)]; } Concurre

文档评论(0)

1亿VIP精品文档

相关文档