package ShareObject;

/**
 * Created by Jo on 10/8/16.
 */
public class NoVisibility {
	
}

@@ -81,11 +81,394 @@
 lity %7B%0A%09
+private static boolean ready;%0A%09private static int number;%0A%0A%09private static class ReaderThread extends Thread%7B%0A%09%09public void run()%7B%0A%09%09%09while(!ready)%7B%0A%09%09%09%09Thread.yield();%0A%09%09%09%7D%0A%09%09%09System.out.println(number);%0A%09%09%7D%0A%09%7D%0A%09public static void main(String%5B%5D args)%7B%0A%09%09for(int i = 0;i%3C100;i++) %7B%0A%09%09%09//%E7%94%B1%E4%BA%8E%E9%87%8D%E6%8E%92%E5%BA%8F%E7%9A%84%E7%BC%98%E6%95%85,%E6%89%A7%E8%A1%8C%E9%A1%BA%E5%BA%8F%E5%8F%AF%E8%83%BD%E5%B9%B6%E4%B8%8D%E6%98%AF%E6%8C%89%E7%85%A7%E9%A2%84%E6%9C%9F%E6%89%A7%E8%A1%8C%0A%09%09%09new ReaderThread().start();%0A%09%09%09number = 100;%0A%09%09%09ready = true;%0A%09%09%7D%0A%09%7D
 %0A%7D%0A

add novisibility