Th3 Posted January 21, 2016 Posted January 21, 2016 (edited) If you dare to play save all your work first. Run the following and report back the last number you see. Highest number wins. Mine was 50585. public class NumberGameOfDeath { private static Object s = new Object(); private static int count = 0; public static void main(String[] argv) { for (; ; ) { new Thread(new Runnable() { public void run() { synchronized (s) { count += 1; System.err.println("New thread #" + count); } for (; ; ) { try { Thread.sleep(1000); } catch (Exception e) { System.err.println(e); } } } }).start(); } } } If you don't know how to run it. Then go learn it bitch. Take a picture of it if you can. Edited January 21, 2016 by Th3 1
Okabe Posted January 21, 2016 Posted January 21, 2016 how long does this take since its still running? 1