Skip to content

Commit

Permalink
add threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxic committed Apr 10, 2024
1 parent 65a4718 commit ee370c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/generators/yarpgenv1/run_yarpgen.sh
Expand Up @@ -38,8 +38,14 @@ gen_yarpgen() {

# Run the function in parallel for arguments 1 to 1000
max=1000
pids=()
for i in $(seq 1 10000); do
gen_yarpgen $i &
pids+=($!)
if (($i % 400 == 0)); then
wait ${pids[@]}
pids=()
fi
done

# Wait for all background processes to finish
Expand Down

0 comments on commit ee370c6

Please sign in to comment.