Re: how to enable thread

2011-08-04 Thread lina
On Thu, Aug 4, 2011 at 11:20 PM, Steven W. Orr wrote: > On 8/4/2011 9:51 AM, lina wrote: >> >> Actually I got a bash script which contains several process (jobs) >> >> The waiting time is so long, I mean, run one by one, >> >> I can submit one by one separately  I can see the cores were used 100%

Re: how to enable thread

2011-08-04 Thread Steven W. Orr
On 8/4/2011 9:51 AM, lina wrote: Actually I got a bash script which contains several process (jobs) The waiting time is so long, I mean, run one by one, I can submit one by one separately I can see the cores were used 100% one by one, but it's better use some bash script so I can easily modify

Re: how to enable thread

2011-08-04 Thread lina
Actually I got a bash script which contains several process (jobs) The waiting time is so long, I mean, run one by one, I can submit one by one separately I can see the cores were used 100% one by one, but it's better use some bash script so I can easily modify in large amounts. How can I enabl

Re: how to enable thread

2011-08-04 Thread Linda Walsh
a make -j will automatically try to schedule tasks on different cpu's if they are needed. Perhaps your job's weren't sufficiently long, or you didn't specify the makefile to be done in parallel. but try this: for i in {0..7};do (for ((j=0;j<10**6;++j)) {a=$j})& done That will run 8 loops of a

Another mapfile question.

2011-08-04 Thread Steven W. Orr
I never even noticed that mapfile exists. I read the section, I googled the galaxy to look for example usage, and I am stuck as to why this is A Good Thing. Is there an example of how to use this that uses the callback feature? And why is this preferable to using a while read loop? I'd just like

how to enable thread

2011-08-04 Thread lina
Hi, I can see when I tried to make -j 8, my 8 cores can be fully occupied. I wrote a short bash script to run something, but only one core was used. are there some simple way to enable thread in my bash script. Thanks, -- Best Regards, lina