Operating System - HP-UX
1748008 Members
4319 Online
108757 Solutions
New Discussion юеВ

Re: PRIORITY LEVEL OF PROCESS

 
SOLVED
Go to solution
Omprakash_2
Frequent Advisor

PRIORITY LEVEL OF PROCESS

Hi,

Can any one suggest me that how to make a proccess to run in high priority.
4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: PRIORITY LEVEL OF PROCESS

Higher than normal? You can use "renice -n -1" or larger negative numbers.

Also see rtsched(1).
Omprakash_2
Frequent Advisor

Re: PRIORITY LEVEL OF PROCESS

Hi Dennis,

Thanks for your comment, now its working fine.

Question: Can you tell me how to change sleep mode to run mode for a specific PID.

I have attached a top command, in which the cmmsaci task is always in sleep mode, so that it takes a long time to complete that specific task. Can you pls suggest...
Dennis Handly
Acclaimed Contributor

Re: PRIORITY LEVEL OF PROCESS

>Can you tell me how to change sleep mode to run mode for a specific PID?

If it is sleeping, it is waiting for I/O or possibly memory. What does "swapinfo -tam" show?
Emil Velez
Honored Contributor

Re: PRIORITY LEVEL OF PROCESS

If a process is sleeping it has nothing to do. It is waiting for something.. Maybe it is waiting on a pipe for some work to be given or something like that.

If a process is waiting on priority that means it has work to do but something else with a higher priority has the cpu.