Deal of The Day! 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

What command changes the priority of the process running with process id of 12345 to the highest priority?
B) /usr/bin/renice -20 12345
A) /usr/bin/renice +20 1234
C) /bin/setpriority +20 12345
D) /bin/setpriority -20 12345

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
8 months ago
I disagree, I think it’s D because setpriority is more direct.
upvoted 0 times
...
Carri
9 months ago
Nope, B is correct. Renice uses negative values for higher priority.
upvoted 0 times
...
Lavonda
9 months ago
I thought it was A at first, but B makes more sense.
upvoted 0 times
...
Albina
9 months ago
It's definitely B, -20 is the highest priority.
upvoted 0 times
...
Karina
9 months ago
Wait, isn't +20 the highest? I'm confused.
upvoted 0 times
...
Tina
9 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
10 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
10 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
10 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
10 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
10 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
11 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
11 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
11 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
1 year ago
Haha, I almost chose option A. Increasing the priority by +20 would make the process run in slow motion!
upvoted 0 times
...
Sunny
1 year ago
I agree with Kattie. Decreasing the value by -20 will set the process to the highest priority.
upvoted 0 times
Arlene
11 months ago
A) /usr/bin/renice +20 1234
upvoted 0 times
...
...
Velda
1 year ago
I'm not sure, but I think C) /bin/setpriority +20 12345 might also be a valid command.
upvoted 0 times
...
Brigette
1 year ago
I agree with Wynell, because renice is used to change the priority of a process.
upvoted 0 times
...
Wynell
1 year ago
I think the answer is B) /usr/bin/renice -20 12345.
upvoted 0 times
...
Kattie
1 year ago
Option B is the correct answer. The renice command with a negative value increases the priority of the process.
upvoted 0 times
Cassandra
12 months ago
Yes, that's correct. The renice command with a negative value increases the priority.
upvoted 0 times
...
Rasheeda
1 year ago
I think the answer is B) /usr/bin/renice -20 12345
upvoted 0 times
...
...

Save Cancel