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

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@gmail.com> 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@frank.uvena.de> 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@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>> Archive: [🔎] 4E3AA979.7010406@frank.uvena.de">http://lists.debian.org/[🔎] 4E3AA979.7010406@frank.uvena.de
>>
>>
>
>
>
> --
> Best Regards,
>
> lina
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] CAG9cJm=tNVr2O3oQAPrEA6T-_3pyZ+4PiUGnCxQwGPGQ6z7Q+Q@mail.gmail.com">http://lists.debian.org/[🔎] CAG9cJm=tNVr2O3oQAPrEA6T-_3pyZ+4PiUGnCxQwGPGQ6z7Q+Q@mail.gmail.com
>
>


Reply to: