In Unix, a user wants to change the priority of a running process, which is the suitable command?
Explanation
In Unix-like operating systems, the priority of a process is determined by its nice value. The renice command is specifically designed to alter the scheduling priority of an already running process.
The nice value N typically ranges from -20 (highest priority) to 19 (lowest priority). If Pcurrent is the current priority and Pnew is the desired priority, the command is used as follows:
renicePnew−pPID
Where PID is the unique Process ID. The relationship between the system's scheduling priority and the nice value can be represented by the function:
Priorityactual=f(N)
Where lower values of N result in more CPU time allocated to the process.
nice: Used to start a new process with a specific priority.
ps: Used to display information about currently running processes.
kill: Used to send a signal (usually to terminate) to a process.
Because the question specifies a "running process," renice is the only appropriate tool among the choices.