The nice callable service changes the nice value of the calling process.
Operation | Environment |
---|---|
Authorization: | Supervisor or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1NIC): | 31-bit |
AMODE (BPX4NIC): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4NIC with the same parameters.
The name of a fullword that contains a value that indicates the relative change in the nice value of the calling process.
The name of a fullword in which the nice service returns -1 if it is not successful. If it is successful, the nice service returns the new nice value minus NICE_ZERO. The constant NICE_ZERO is defined in the BPXYCONS macro (see BPXYCONS — Constants used by services).
Because the nice service can return the value -1 on successful completion, it is necessary to set the Return_code parameter to 0 before a call to nice. If nice returns the value -1, the Return_code parameter can be checked to see if an error occurred or if the service was successful.
Return_code | Explanation |
---|---|
EPERM | The nice_change value is negative, and the calling process does not have the appropriate privileges (see Authorization). |
EMVSSAF2ERR | A security product internal error has occurred. Consult Reason_code for the exact reason for the error. |
ENOSYS | The system does not support this function. Your installation has chosen not to enable it. |
The name of a fullword in which the nice service stores the reason code. The nice service returns Reason_code only if Return_value is -1. Reason_code further qualifies the Return_code value. For the reason codes, see z/OS UNIX System Services Messages and Codes.
If the calling process is running in a multiple-process address space, the nice values of all the processes in the address space are changed upon successful completion of the nice service.
For an example using this callable service, see BPX1NIC (nice) example.