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 
Return to the default flat view Create a new topic Submit Reply
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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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: Fri Oct 17 21:30:58 PDT 2025

Total time taken to generate the page: 0.72121 seconds