check thread dead or not