Linux Scroll

Just another WordPress.com site

Linux CPU scheduler

Use nice to change priority in the kernel scheduler. The default niceness for processes is inherited from its parent process, usually 0
The nice levels go from -20 to 19.
-20 is the lowest nice level, which gives it the highest priority
19 is the highest nice level, which gives it the lowest priority

Highest priority (need to be root to run this):

$ nice -n -20 command

Lowestt priority :

$ nice -n 19 command

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: