add thread deadlock