What is 'PRI' and 'NI' column in 'ps -eaf' output ?

How does these parameter affect the processing and scheduling of the process? Can I get a example to understand it in better way ?
beer9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LinuxNtwrkngCommented:
PRI = priority
NI= nice

Nice and priority are inversely related.  The higher the nice value, the lower the priority the process will execute with.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
beer9Author Commented:
what are the range for priority a process can have ?

for nice i think it should be -20 to +20.
0
LinuxNtwrkngCommented:
Priority ranges from 0 to 127

Lower the number, the higher the priority
0
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

LinuxNtwrkngCommented:
Oh.. and you were right about the nice range
0
omarfaridCommented:
the operating system allocate resources (cpu in particular) and pick the next process to occupy the cpu based on the priority. The process priority is changing and this is done by OS. The higher the priority the more cpu the process will get. the nice value influence the priority of a process. The user root can set priority of any process as well as the nice value. The owner can only lower the priority of his processes.
0
LinuxNtwrkngCommented:
Unless you have further questions about this, please close the question.

Thanks
0
beer9Author Commented:
Excellent!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.