Process priorities and X
David Elliott
dce at smsc.sony.com
Thu Jul 5 02:00:42 AEST 1990
In article <1990Jul4.061431.12129 at servalan.uucp> rmtodd at servalan.uucp (Richard Todd) writes:
> Is said user, by any chance, using twm? I'm running X11R4 with twm on a
>Mac IIx, and I've noticed that clients that are started from twm (by some
>twm menu action) are niced down by 4, and clients that are started by hand
>run at normal niceness.
This makes sense. All twm does is to system() the command to be
executed, so it is subject to the same rules as any command executed
by /bin/sh.
In System V.2 and better versions of sh, the default is to automatically
nice down (by 4) all processes started in the background.
In other words, it probably isn't twm starting the processes at a
lower priority, but the shell. If you have source for sh, you can
recompile it to not nice down background jobs. Another option is
to write your own "background" command that runs, using the shell,
the command[s] you need in the background (by forking and redirecting
the process itself, instead of giving a & to the shell).
as arguments
--
David Elliott
dce at smsc.sony.com | ...!{uunet,mips}!sonyusa!dce
(408)944-4073
"If I had a hat the size of Oklahoma, I'd be a happy person."
More information about the Comp.unix.questions
mailing list