nice() changes the good value of the current process compared to its current good value, so the process does not need to know about its start with a good value, it only cares that it is better in the system (for example: the process starts a child who does some background processing, the child puts himself well).
setpriority() case is used when the user explicitly sets absolute pleasant values ββfor specific processes.
ninjalj
source share