5 Replies Latest reply on Jan 17, 2012 12:39 PM by sabre150

    What happens when I assign null to a Thread object?

      What happens to the resources created in object t when I assign null to it at the end of the code?

                CellsiteThread t = new CellsiteThread();

                long start = System.currentTimeMillis();
                while (!completed && !timedout) {
                     if (System.currentTimeMillis() - start > TIMEOUT)
                          timedout = true;               
                t = null;