1,volatile 2,synchronized 聊聊并发(一)深入分析Volatile的实现原理 http://blog.youkuaiyun.com/tenfyguo/article/details/24999141