exec_script, fixed number of threads