103.6 Modify process execution priorities Flashcards
What are the ranges of nice levels or process priorities?
- 20: highest priority. Gets the CPU’s full attention
0: is the default for most processes. Middle attention.
19: lowest priority
Which user can modify the nice level of a process to a higher priority? Who can lower the priority?
root or a privileged account can increase it to get more CPU time.
Any user can lower their priority to get less CPU time.
What command and syntax is used to modify a process priority to a lower priority (less CPU time) before it gets started?
nice -n
What is the difference between # nice and #renice?
#nice is used to define a new nice level before an application is started #renice is used to change the nice level or an application that is already running.
What is the syntax for the #renice command?
sudo renice -n
What key once within #top will display the processes for a specified user?
<u> then type the user name as prompted.</u>
What key once within #top will change the priority for a specified process? (renice)
then type the PID and then the new priority as prompted.
What is priority assignment for processes?
It dictates how much time the CPU grants the process.
What do all processes need?
They all need CPU time.