[added] imeplementation for Thread.