摘要:
SpinLock实现,摘自并发编程网```package com.juc.simple;import java.util.concurrent.atomic.AtomicReference;/** * a implement of spinlock based on cas * */public ... 阅读全文
摘要:
zookeeper心跳机制流程梳理=========Processor链Chain```protected void setupRequestProcessors() { RequestProcessor finalProcessor = new FinalRequestProcessor(t... 阅读全文
摘要:
单例模式DoubleCheck 锁问题=========先贴代码```public class DoubleCheckSingleton { private static DoubleCheckSingleton instance = null; public static DoubleCh... 阅读全文