摘要: 扩容前 扩容后 机制 else { // preserve order Node<K,V> loHead = null, loTail = null;//低指针 Node<K,V> hiHead = null, hiTail = null;//高指针 Node<K,V> next; do {//采用 阅读全文
posted @ 2020-02-09 14:29 Allen没有青春 阅读(245) 评论(0) 推荐(0)
摘要: /** * @description 队列同步器,利用原子整形模仿AQS,非公平锁(简单自适应自旋) * @since 2020/2/4 */ public class QueueSynchronizer { private AtomicInteger state=new AtomicInteger 阅读全文
posted @ 2020-02-07 12:27 Allen没有青春 阅读(176) 评论(0) 推荐(0)