System.out.println的可見性問題?

貼出代碼: public class VisibilityDemo { public static void main(String[] args) throws InterruptedException { VisibilityTest v = new VisibilityTest(); v.start(); Thread.sleep(1000); v.stoplt(); Thread.slee
相關文章
相關標籤/搜索