一个Java线程间内存可见性实例的解读
代码来源public class TestVolatile { public static void main(String[] args) throws InterruptedException { ThreadDemo threadDemo = new ThreadDemo(); new Thread(threadDemo).start(); ...