comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Nice bridges
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Nice bridges [message #93019] Mon, 11 April 2016 04:46 Go to next message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Is there a way to set the nice level of the child processes created by IDL_IDLBridge?

/Mats
Re: Nice bridges [message #93021 is a reply to message #93019] Mon, 11 April 2016 06:39 Go to previous messageGo to next message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den måndag 11 april 2016 kl. 13:46:08 UTC+2 skrev Mats Löfdahl:
> Is there a way to set the nice level of the child processes created by IDL_IDLBridge?
>
> /Mats

This is in linux, by the way.
Re: Nice bridges [message #93022 is a reply to message #93021] Mon, 11 April 2016 07:09 Go to previous messageGo to next message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Monday, 11 April 2016 15:39:23 UTC+2, Mats Löfdahl wrote:
> Den måndag 11 april 2016 kl. 13:46:08 UTC+2 skrev Mats Löfdahl:
>> Is there a way to set the nice level of the child processes created by IDL_IDLBridge?
>>
>> /Mats
>
> This is in linux, by the way.

Something ugly like this should work. (Unix specific, obviously.)

IDL> b = idl_idlbridge()
% Loaded DLM: IDL_IDLBRIDGE.
IDL> b->execute, "pid = call_external('libc.so.6', 'getpid')"
IDL> pid = b->getvar('pid') & print, pid
39558
IDL> spawn, 'renice -n 19 '+string(pid)
39558: old priority 0, new priority 19

--
Yngvar
Re: Nice bridges [message #93023 is a reply to message #93022] Mon, 11 April 2016 07:20 Go to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den måndag 11 april 2016 kl. 16:09:15 UTC+2 skrev Yngvar Larsen:
> On Monday, 11 April 2016 15:39:23 UTC+2, Mats Löfdahl wrote:
>> Den måndag 11 april 2016 kl. 13:46:08 UTC+2 skrev Mats Löfdahl:
>>> Is there a way to set the nice level of the child processes created by IDL_IDLBridge?
>>>
>>> /Mats
>>
>> This is in linux, by the way.
>
> Something ugly like this should work. (Unix specific, obviously.)
>
> IDL> b = idl_idlbridge()
> % Loaded DLM: IDL_IDLBRIDGE.
> IDL> b->execute, "pid = call_external('libc.so.6', 'getpid')"
> IDL> pid = b->getvar('pid') & print, pid
> 39558
> IDL> spawn, 'renice -n 19 '+string(pid)
> 39558: old priority 0, new priority 19
>
> --
> Yngvar

Thanks.

I just realized that the child processes get whatever nice level the idl process has, so that was an easy solution to my problem.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plot with X-Axis ticks as string
Next Topic: wplot not zooming

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:16:36 PDT 2025

Total time taken to generate the page: 0.00478 seconds