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

Home » Public Forums » archive » Re: IDL and 'nice' question
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: IDL and 'nice' question [message #25536 is a reply to message #25535] Thu, 28 June 2001 08:33 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Randall Skelton <rhskelto@atm.ox.ac.uk> writes:


> Hi all,
>
> I have a question regarding setting the priority of IDL on a *nix
> operating system. There are certain instances when it is desirable to
> set the priority of idl to a lower priority with the nice command. Of
> course, typing 'idl' at the command-line is actually a front-end to a shell
> script and not an actual binary. Are there any foreseeable problems in
> starting the idl binary directly with 'nice -19 $IDL_DIR/bin/idl' as
> opposed to staring the shell script?

Before you go get yourself all twisted in a knot of DLMs, I think
things are alot easier than you thing.

First thing, I think you are confusing low and high priority. For the
non-unix among us, the "nice" command allows a user to set the process
priority, which is essentially how much attention the CPU will give a
program. Running programs with low priority are readily bumped in
favor of higher priority programs. A *positive* nice number indicates
a lower priority -- it is more "nice" to others; a negative nice
number is a higher priority. Thus your use of "-19" and "low
priority" don't seem to be the right mix.

Second, I believe that a process's "nice" level is inherited by any
subprocesses. [ That has to be the case, otherwise a program could
escape it's priority constraints by spawning a new copy of itself. ]
So it shouldn't matter that the "idl" command is a script.

If you really need to nice the binary itself, why not copy the
existing idl script to a new file called "niceidl" and add the nice
command at the last step?

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: Re: filled closed curve
Next Topic: Test. Please Disregard.

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

Current Time: Sat Oct 11 15:00:38 PDT 2025

Total time taken to generate the page: 1.19929 seconds