New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM LCP-001 Exam - Topic 4 Question 91 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 91
Topic #: 4
[All LCP-001 Questions]

What command changes the priority of the process running with process id of 12345 to the highest priority?

Show Suggested Answer Hide Answer
Suggested Answer: B

To change the priority of running process we use the renice command. Default priority is 0, highest priority is -20 and lowest priority is 19. The path of renice command is /usr/bin/renice.


Contribute your Thoughts:

0/2000 characters
Elfriede
2 months ago
I disagree, I think it’s D because setpriority is more direct.
upvoted 0 times
...
Carri
2 months ago
Nope, B is correct. Renice uses negative values for higher priority.
upvoted 0 times
...
Lavonda
2 months ago
I thought it was A at first, but B makes more sense.
upvoted 0 times
...
Albina
3 months ago
It's definitely B, -20 is the highest priority.
upvoted 0 times
...
Karina
3 months ago
Wait, isn't +20 the highest? I'm confused.
upvoted 0 times
...
Tina
3 months ago
I'm pretty sure `renice` is the right command, but I can't remember if it was `12345` or `1234` for the process ID.
upvoted 0 times
...
Marvel
3 months ago
I feel like I saw a question similar to this where `setpriority` was used, but I can't recall the exact syntax.
upvoted 0 times
...
Chi
4 months ago
I remember practicing with `renice`, and I think the higher the number, the lower the priority, so it must be `-20` for the highest priority.
upvoted 0 times
...
Trina
4 months ago
I think the command to change priority is `renice`, but I'm not sure if it's `+20` or `-20` for the highest priority.
upvoted 0 times
...
Sabrina
4 months ago
Okay, I think I've got it. The question asks to set the process to the highest priority, so the answer must be option B, /usr/bin/renice -20 12345.
upvoted 0 times
...
Kimbery
4 months ago
I'm a bit unsure about this one. I know priority values range from -20 to 19, with -20 being the highest priority. So I'm not sure if the +20 or -20 is the right approach here.
upvoted 0 times
...
Quentin
4 months ago
Alright, I'm pretty confident that option B is the correct answer. The -20 flag should set the process to the highest priority.
upvoted 0 times
...
Tora
5 months ago
Okay, let me think this through. I know the renice command is used to change process priority, so I'm guessing one of those options is the right answer.
upvoted 0 times
...
Margurite
5 months ago
Hmm, this looks like a tricky one. I think the key is to figure out which command actually changes the priority of the process.
upvoted 0 times
...
Vi
6 months ago
Haha, I almost chose option A. Increasing the priority by +20 would make the process run in slow motion!
upvoted 0 times
...
Sunny
7 months ago
I agree with Kattie. Decreasing the value by -20 will set the process to the highest priority.
upvoted 0 times
Arlene
5 months ago
A) /usr/bin/renice +20 1234
upvoted 0 times
...
...
Velda
7 months ago
I'm not sure, but I think C) /bin/setpriority +20 12345 might also be a valid command.
upvoted 0 times
...
Brigette
7 months ago
I agree with Wynell, because renice is used to change the priority of a process.
upvoted 0 times
...
Wynell
7 months ago
I think the answer is B) /usr/bin/renice -20 12345.
upvoted 0 times
...
Kattie
7 months ago
Option B is the correct answer. The renice command with a negative value increases the priority of the process.
upvoted 0 times
Cassandra
5 months ago
Yes, that's correct. The renice command with a negative value increases the priority.
upvoted 0 times
...
Rasheeda
6 months ago
I think the answer is B) /usr/bin/renice -20 12345
upvoted 0 times
...
...

Save Cancel