LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2010, 04:50 PM   #1
turbomen
LQ Newbie
 
Registered: Oct 2010
Posts: 21

Rep: Reputation: 0
What is the default nice value for processes?


What is the default nice value for processes?

Does the following stuff is the answer?

The setpriority() function sets the nice value of a process, all processes in a process group, or all processes for a specified user to the specified value. If the process is multi-threaded, the nice value affects all threads in the process. The default nice value is 0; lower nice values cause more favorable scheduling.
 
Old 11-17-2010, 04:58 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Ooops. You actually DID do some reading; my apologies.

Thread reopened.


Cheers,
Tink

Last edited by Tinkster; 11-17-2010 at 05:49 PM.
 
Old 11-17-2010, 06:29 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And to confirm your findings - yes, 0 is the default niceness.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the default nice value for processes? turbomen Linux - Newbie 1 11-16-2010 03:53 AM
Priority of processes (using nice) started from within a script podollb Linux - Software 1 01-08-2006 12:44 PM
nice processes automatically LiNuXkOlOnIe Linux - Software 3 01-08-2006 08:25 AM
All processes nice for certain users dxdad Linux - General 2 10-30-2004 06:58 AM
nice does not seem to work in prioritizing large processes?? carlos123 Linux - Software 1 11-22-2003 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration