41.
Of the following nice values, which will increase the priority of the selected
process?
- A.100
- B.20
- C.-19
- D.-100
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
To increase process priority, you need a negative nice value. -19 is the lowest value that can be used. |
42.
Which of the following shows correct syntax to change the priority for the
current process with PID 1234?
- A.nice -n 5 1234
- B.renice 5 1234
- C.renice 5 -p 1234
- D.nice 5 -p 1234
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
Use the renice command to change priority for currently running processes. To refer to the process you want to renice, use the -p option. |
43.
Which of the following commands cannot be used to send signals to
processes?
- A.kill
- B.mkill
- C.pkill
- D.killall
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
mkill is not a current command to send signals to processes. |
44.
Which signal would you send to a process if you want to force it to stop, even
if that means potential loss of data that the process is currently working with?
- A.SIGKILL
- B.SIGSTOP
- C.SIGTERM
- D.SIGHUP
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
The SIGKILL signal sends the famous signal with number 9 to a process, which forces the process to stop. |
45.
Which of the following commands would you use from top to change the priority
of a process?
- A.r
- B.n
- C.c
- D.k
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
To change the process priority from top, use r for renice. |