0 like 0 dislike
397 views

Please log in or register to answer this question.

1 Answer

0 like 0 dislike
answered by (4k points)  

the nice command allows you to change the priority of a process (that isn’t already running) while the renice command allows you to change the priority of a process that’s already running

note: you cannot change the priority of a running process using nice

both take values from -10 to 19 and the lower the value the higher the priority

the default value for any running process is 0

any user can increase the value of a process (slow it down) but it requires root access to decrease it (make it faster)

and finally you have to know the PID of a process in order to change its priority using the renice command

An example of renice command is as follows:

renice -5 -p 3434 

this will set the priority of process id no 3434 to -5, which will inturn increase its priority over others

An examples of the nice command is as follows:

nice -n 11 <command name>

 

How to Check Nice Value of Linux Processes

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
Welcome to PostgreSQL Database Discussion Forum where you can ask questions and receive answers from other members of the community. Can discuss here Oracle, Postgresql, mariadb , mySQL , AWS , Linux , MSSQL , MongoDB , Greenplum databases related queries ...etc.
...