Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM LCP-001 Exam - Topic 4 Question 91 Discussion

Posted by Beula on Jul 04, 2025 at 07:23 AM

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

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.


Get Premium LCP-001 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
23 comments · newest first
EL
Elfriede 10 months ago
I disagree, I think it’s D because setpriority is more direct.
CA
Carri 10 months ago
Nope, B is correct. Renice uses negative values for higher priority.
LA
Lavonda 10 months ago
I thought it was A at first, but B makes more sense.
AL
Albina 11 months ago
It's definitely B, -20 is the highest priority.
KA
Karina 11 months ago
Wait, isn't +20 the highest? I'm confused.
TI
Tina 11 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.
MA
Marvel 11 months ago
I feel like I saw a question similar to this where `setpriority` was used, but I can't recall the exact syntax.
CH
Chi 12 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.
TR
Trina 12 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.
SA
Sabrina 12 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.
KI
Kimbery 1 year 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.
QU
Quentin 1 year ago
Alright, I'm pretty confident that option B is the correct answer. The -20 flag should set the process to the highest priority.
TO
Tora 1 year 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.
MA
Margurite 1 year 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.
VI
Vi 1 year ago
Haha, I almost chose option A. Increasing the priority by +20 would make the process run in slow motion!
SU
Sunny 1 year ago
I agree with Kattie. Decreasing the value by -20 will set the process to the highest priority.
AR
Arlene 1 year ago
↳ replying to Sunny
A) /usr/bin/renice +20 1234
VE
Velda 1 year ago
I'm not sure, but I think C) /bin/setpriority +20 12345 might also be a valid command.
BR
Brigette 1 year ago
I agree with Wynell, because renice is used to change the priority of a process.
WY
Wynell 1 year ago
I think the answer is B) /usr/bin/renice -20 12345.
KA
Kattie 1 year ago
Option B is the correct answer. The renice command with a negative value increases the priority of the process.
CA
Cassandra 1 year ago
↳ replying to Kattie
Yes, that's correct. The renice command with a negative value increases the priority.
RA
Rasheeda 1 year ago
↳ replying to Kattie
I think the answer is B) /usr/bin/renice -20 12345
0/2000 characters

Save Cancel