Volatile(轻量级的synchronized实现) Posted on 2018年5月5日 by admin 最近看《深入理解JVM》一书,在高效并发一章有专门讲解volatile修饰符。其两个特点要注意:①:线程“可见…