coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] nice: add -a arg to set absolute niceness


From: Pádraig Brady
Subject: Re: [PATCH] nice: add -a arg to set absolute niceness
Date: Fri, 21 Aug 2020 17:14:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Thunderbird/80.0

On 21/08/2020 13:36, Kevin Mark wrote:
Adds an -a --absolute argument to nice which sets niceness to the
given value as opposed to -n --adjustment which sets niceness
relative to the current niceness.

$ nice -n $((12 - $(nice))) nice
12

can be replaced with

$ nice -a 12 nice
12

I'm not sure the new option is worth this simplification.
I'd be 60:40 against adding this.

BTW I notice renice from util-linux takes an absolute value
as an argument to -n, which is inconsistent with renice on FreeBSD
(which supports both absolute and relative, using -n to specify
a relative adjustment (consistent with nice)).

thanks,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]