add thread demo script