Parallelism a la make -j / GNU parallel

2012-05-03 Thread Colin McEwan
Hi there, I don't know if this is anything that has ever been discussed or considered, but would be interested in any thoughts. I frequently find myself these days writing shell scripts, to run on multi-core machines, which could easily exploit lots of parallelism (eg. a batch of a hundred indepe

Re: Parallelism a la make -j / GNU parallel

2012-05-03 Thread Colin McEwan
west job in each iteration of the loop: > > > maxiter=100 > ncore=8 > > for iter in $(seq 1 $maxiter) > do > startjob $iter & > > if (( (iter % $ncore) == 0 )) > then >wait > fi > done > > > On Thu, May 3, 2012 at 12:49 PM, Colin M