Solved

What is the relation of nice and priority in Linux?

Posted on 2011-09-23
1
348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
_3mp3ror_ earned 500 total points
ID: 36590800
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange, squid, proxy, linux 6 87
linux convert text file to PDF 7 70
grep command usage 10 28
How ldap located a Domain controller? 22 77
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
Suggested Courses

734 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