If you want all that, grovel in /proc yourself, I say.

The difference between niceness and priority:  Niceness is set by the program and is normally more or less static.  Priority is determined by the kernel on a moment-by-moment basis, taking niceness and many other things into account.

On Mon, Aug 26, 2019 at 11:55 AM Lassi Kortela <xxxxxx@lassi.io> wrote:
So far we have these procedures for getting information about the
current process:

(working-directory)
(pid)
(parent-pid)
(process-group)
(nice)
(user-uid)
(user-gid)
(user-supplementary-gids)

It would be natural to implement the same procedures for subprocesses,
or even for unrelated processes (for programs that do 'top'-like things):

(process-working-directory <process>)
(process-pid <process>)
(process-parent-pid <process>)
(process-process-group <process>)
(process-nice <process>)
(process-user-uid <process>)
(process-user-gid <process>)
(process-user-supplementary-gids <process>)

Juxtaposing them like that leads to the following observations:

* process-process-group sounds funny

* "nice" is decent as a verb, but would "priority" be a more obvious and
universal word?

* "process-user" sounds a bit redundant.