tmp: try to restrict the number of processes
rewrite startNTasks_child()