Update Thread.java

added length field.