update PThread class.