5 Replies Latest reply: Jan 17, 2012 6:39 AM by sabre150 RSS

    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;