103.6 Modify process execution priorities Flashcards

1
Q

What are the ranges of nice levels or process priorities?

A
  • 20: highest priority. Gets the CPU’s full attention
    0: is the default for most processes. Middle attention.
    19: lowest priority
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which user can modify the nice level of a process to a higher priority? Who can lower the priority?

A

root or a privileged account can increase it to get more CPU time.
Any user can lower their priority to get less CPU time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command and syntax is used to modify a process priority to a lower priority (less CPU time) before it gets started?

A

nice -n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between # nice and #renice?

A
#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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the syntax for the #renice command?

A

sudo renice -n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What key once within #top will display the processes for a specified user?

A

<u> then type the user name as prompted.</u>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What key once within #top will change the priority for a specified process? (renice)

A

then type the PID and then the new priority as prompted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is priority assignment for processes?

A

It dictates how much time the CPU grants the process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do all processes need?

A

They all need CPU time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly