Solved

What is the relation of nice and priority in Linux?

Posted on 2011-09-23
1
317 Views
Last Modified: 2012-05-12
Hello, I would to understand the relationship of nice and priority in Linux, as per my current knowledge the nice value range is 19 to -20, where -20 is the highest number to set for high priority CPU scheduling. Could someone please explain me how is the priority number is affected by the nice value? Thanks!
0
Comment
Question by:beer9
1 Comment
 
LVL 9

Accepted Solution

by:
_3mp3ror_ earned 500 total points
Comment Utility
The nice command allows programs to be started at a lower or higher than normal scheduling priority.
This allows you to control which processes the kernel should favor when dividing processor time among running programs.
Processes with the lowest nice number are executed with the highest priority and vice versa.

On most systems, priority levels for normal users range from 0 to 19, with 0 being the highest priority and 19 being the lowest priority. The root user can create processes with a range of -20 (highest) to 19 (lowest).
Most programs start with a nice level of 0 by default. Critical system services usually have a negative nice level so that they are always given preference over user programs.

This quote  is from a realy good book which is free btw. If you are new to linux commands I highly recommend it.
http://dontfearthecommandline.blogspot.com/
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now