Update Thread.java

Added some more logistic stuff