| Author |
Message |
Barry Margolin *nix forums Guru
Joined: 24 Feb 2005
Posts: 323
|
Posted: Sat Nov 12, 2005 4:32 pm Post subject:
Re: Default priority for a unix process
|
|
|
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 |
|
 |
dare_eagle@yahoo.com *nix forums beginner
Joined: 16 Jul 2005
Posts: 10
|
Posted: Sat Nov 12, 2005 3:27 am Post subject:
Re: Default priority for a unix process
|
|
|
| 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 |
|
 |
Bill Marcum *nix forums Guru
Joined: 28 Mar 2005
Posts: 1264
|
Posted: Fri Nov 11, 2005 10:56 pm Post subject:
Re: Default priority for a unix process
|
|
|
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
|
Posted: Fri Nov 11, 2005 11:26 am Post subject:
Default priority for a unix process
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|