NICE RENICE

The process scheduling priority range is from -20 to 19. We call this as nice value.
A nice value of -20 represents highest priority, and a nice value of 19 represent least priority for a process.
By default when a process starts, it gets the default priority of 0.
# nice -5 perl script.pl    {for 5}
# nice --10 perl test.pl {for -10}
 
$ ps -fl -C "perl test.pl" 
 
Change running pprocesses  

# renice -n -19 -p 3534
 
# renice -n 5 -g apache  (of group apache) 
 
# renice -n 5 -u hari    {of user hari}


No comments:

Post a Comment