@Test(timeout = 2000) public void testMain() { Thread[] threads = new Thread[100]; for (int k = 0; k < threads.length; k++) threads[k] = new ReaderThread(); for (int k = 0; k < threads.length; k++) threads[k].start(); number = 42; ready = true; }
public static void main(String[] args) { new ReaderThread().start(); number = 42; ready = true; }
NoVisibility { public static void main(String[] args) { new ReaderThread().start(); number = 42; ready = true; } }
NoVisibility { public static void main(String[] args) { new ReaderThread().start(); number = 42; ready = true; }  }
NoVisibility { public static void main(String[] args) { new ReaderThread().start(); number = 42; ready = true; }  static void main(String[] args); }
NoVisibility { public static void main(String[] args) { new ReaderThread().start(); number = 42; ready = true; }  static void main(String[] args);  }