Re: thread issue



have you tried adding an '&' to the tasks you think can be run in
parallel (as in running them in the background (ie 'mycmd myargs &'))?

On Thu, Aug 4, 2011 at 10:23 AM, lina <lina.lastname@xxxxxxxxx> wrote:
Thanks for suggestions,

Actually I got a job which contains several small jobs inside.

if run the bash script, it will do those one by one and it is pretty
slow, waiting ...

I can run each small jobs separately, but use a bash script kind of
easy to make some changes in amount and manage.

I just wonder are there some simple way to do it?

another question, if I don't have root previlege, can I adjust my nice
level in some cluster? I noticed mine NI was kind of 19, totally crazy
slow.

On Thu, Aug 4, 2011 at 10:15 PM, Frank Lanitz <frank@xxxxxxxxxxxxxx> wrote:
Am 04.08.2011 15:12, schrieb lina:
Hi,

I noticed when make -j 8, the 8 cores can be fully occupied.

can I use some way to enable 8 cores at the same time when I run
something, such as a bash script?

Hard to say as it depends on the software you are running. On shell
scripts you might can do it by intelligent forking of processes doing
the single tasks.

How can I fork of processes doing each single tasks?

Other applications do need to support multi threading in most cases
already inside source code.

Cheers,
Frank


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4E3AA979.7010406@xxxxxxxxxxxxxx





--
Best Regards,

lina


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/CAG9cJm=tNVr2O3oQAPrEA6T-_3pyZ+4PiUGnCxQwGPGQ6z7Q+Q@xxxxxxxxxxxxxx




--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/CAA6oTfZb4LBT-+B6jb=NBq=AXCLJtVeP0xeK1meT-VnHjCyTrw@xxxxxxxxxxxxxx



Relevant Pages

  • Re: thread issue
    ... if run the bash script, it will do those one by one and it is pretty ... I noticed when make -j 8, the 8 cores can be fully occupied. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: is it possible to install a desktop-manager without python and perl?
    ... Like others said, learn whats the right tool for the job, do the jobs you feel ... that if I can save three weeks programing, let the program run a couple of days ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • (solved)Re: why sarge is so noisy
    ... If you're hearing disk activity at a specific time every day, ... You can disable individual jobs by removing the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: thread issue
    ... now is fully running, but, there is another thing slow it down, the ... if run the bash script, it will do those one by one and it is pretty ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: thread issue
    ... Actually I got a job which contains several small jobs inside. ... if run the bash script, it will do those one by one and it is pretty ... Using the make file option is simply extra work with no gain. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)