add thread demo