arrow
arrow
arrow
Which Linux command is used to modify the priority of a running process?
Question



Which Linux command is used to modify the priority of a running process?

A.

ps

B.

kill

C.

nice

D.

renice

E.

top

Correct option is D

The renice command is used in Linux to modify the priority of a running process. It allows users to increase or decrease the "niceness" value of a process, which determines how much CPU time it gets. Lower values mean higher priority.
Example: renice -n 5 -p 1234 # Set niceness to 5 for process with PID 1234
Important Key Points:
1. renice allows real-time modification of process priorities without terminating or restarting the process.
2. The niceness value ranges from -20 (highest priority) to 19 (lowest priority).
3. Processes with a lower niceness value get higher CPU time compared to those with higher niceness values.
Knowledge Booster:
· ps: Displays information about processes but does not modify them.
· kill: Sends signals to terminate or restart processes, not for modifying priorities.
· nice: Sets the niceness value when starting a process, unlike renice, which works on running processes.
· top: Provides a real-time view of system processes but does not modify priorities directly.

Free Tests

Free
Must Attempt
Video Solutions

RBI Assistant Pre 2026 Full Mock Test -01

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Asst Prelims 2026 : Reasoning Section Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Office Attendant 2026 Full Mock Test - 01

languageIcon English
  • pdpQsnIcon120 Questions
  • pdpsheetsIcon120 Marks
  • timerIcon90 Mins
languageIcon English
test-prime-package

Access ‘SEBI Grade-A Assistant Manager’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
354k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow