niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Unix internals
Default priority for a unix process
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
dare_eagle@yahoo.com
*nix forums beginner


Joined: 16 Jul 2005
Posts: 10

PostPosted: Fri Nov 11, 2005 11:26 am    Post subject: Default priority for a unix process Reply with quote

Hi,
I have a small query. We can enhance priority of a process using nice
and renice commands in unix. The priority can range from -19 to 20. But
I would like to know where is the defination been done that if a
particular is process is forked it would have a priority of say 'x' .
And can this be modified. Is it defined somewhere in the kernel or some
config file .


Thanks
Mohan
Back to top
Bill Marcum
*nix forums Guru


Joined: 28 Mar 2005
Posts: 1264

PostPosted: Fri Nov 11, 2005 10:56 pm    Post subject: Re: Default priority for a unix process Reply with quote

On 11 Nov 2005 03:26:17 -0800, dare_eagle@yahoo.com
<dare_eagle@yahoo.com> wrote:
Quote:
Hi,
I have a small query. We can enhance priority of a process using nice
and renice commands in unix. The priority can range from -19 to 20. But
I would like to know where is the defination been done that if a
particular is process is forked it would have a priority of say 'x' .
And can this be modified. Is it defined somewhere in the kernel or some
config file .

A child process inherits its parent's priority.



--
We're happy little Vegemites,
As bright as bright can be.
We all all enjoy our Vegemite
For breakfast, lunch and tea.
Back to top
dare_eagle@yahoo.com
*nix forums beginner


Joined: 16 Jul 2005
Posts: 10

PostPosted: Sat Nov 12, 2005 3:27 am    Post subject: Re: Default priority for a unix process Reply with quote

Quote:
A child process inherits its parent's priority.
I understand that; what I want to know is where is it defined that by

default a process will have this priority ( nice value ) when it is
started ( even from the first process since the system is booted).

Regards
Mohan
Back to top
Barry Margolin
*nix forums Guru


Joined: 24 Feb 2005
Posts: 323

PostPosted: Sat Nov 12, 2005 4:32 pm    Post subject: Re: Default priority for a unix process Reply with quote

In article <1131766046.260897.146860@g43g2000cwa.googlegroups.com>,
dare_eagle@yahoo.com wrote:

Quote:
A child process inherits its parent's priority.
I understand that; what I want to know is where is it defined that by
default a process will have this priority ( nice value ) when it is
started ( even from the first process since the system is booted).

init, the initial process, starts with nice = 0, and everything inherits
from this. I expect this is hard-coded in the kernel, but if you want
to be sure why don't you read the source?

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 7:00 pm | All times are GMT
navigation Forum index » Programming » Unix internals
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts change default install directory when using bdist_rpm krithika.sridhar@gmail.co python 1 Fri Jul 21, 2006 4:09 am
No new posts ssh not exiting because of spawned process Old Wolf Solaris 1 Fri Jul 21, 2006 12:54 am
No new posts Need a little unix help Marc Perkel Exim 10 Thu Jul 20, 2006 11:21 pm
No new posts equivalent of MAIL>SET FORWARD/USER=ME YOU on unix VAXman-@SendSpamHere.ORG VMS 4 Thu Jul 20, 2006 7:56 pm
No new posts does the default constructor initialize values? NewToCPP C++ 12 Thu Jul 20, 2006 3:37 pm

Mortgage Calculator | MPAA | Gas Suppliers | Online Advertising | Credit Card Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2072s ][ Queries: 16 (0.1122s) ][ GZIP on - Debug on ]