add thread.sh  run_in_cycle.sh