[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to refrain only use certain number of processors



Hi,

( sorry if it a bit off-topic)

I have a script like

#!/bin/bash

for i in {0..108}
do

some job will run for mins &

done

Here I used & for some kinda of parallel.
but there is a problem,

I wished at most it only run 8 jobs simultantly, no more than 8, once
finished, a new job can continue,

Some suggestions?

Thanks,


Reply to: