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

Re: how to refrain only use certain number of processors



On Mon, Jan 30, 2012 at 6:35 PM, Jochen Spieker <ml@well-adjusted.de> wrote:
> lina:
>>
>> I wished at most it only run 8 jobs simultantly, no more than 8, once
>> finished, a new job can continue,
>
> Xargs can be used for this. An exmaple:
>
> $ seq 1 100 | xargs -n1 -P8 echo
>
> Seq prints the numbers from 1 to 100 (one per line) and xargs starts an
> echo for each argument with 8 invocations in parallel.

I don't get it well.
>
> J.
> --
> Ultimately, the Millenium Dome is a spectacular monument of the
> doublethink of our times.
> [Agree]   [Disagree]
>                 <http://www.slowlydownward.com/NODATA/data_enter2.html>


Reply to: