Do background process have different nice given? I noticed it is not having the default 0. This might be a problem because it is having less priority.. does anyone know how to change this behavior? I run the java via below start script and no there is no nice
called inside that script.
nohup ./start.sh &
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 5330 12759 1 0 84 4 - 3283 - ? 00:00:00 start.sh
0 S 5330 12772 12759 1 84 4 - 1462473 - ? 00:19:12 java
ksh
shell has abgnice
shell option that, when it is set, means that any background job will have a nicer niceness value. – Kusalananda♦ Apr 12 '20 at 22:07ksh
but i explicitly use#!/bin/sh
in the script. – Ykaly Apr 12 '20 at 22:13ksh ./thescript
or maybe as./thescript &
? – Kusalananda♦ Apr 12 '20 at 22:19nohup ./thescript &
. – Ykaly Apr 12 '20 at 22:22