Changing Priority

I cannot seem to change the priority of a process with either the slay
command or from within a program using the sched_setscheduler function. I
can change the policy but not the priority level. I have tried as a standard
user and as root with no change according to pidin. Am I missing something?
I have used setprio sched_setscheduler with QNX4 on the past with no
problem.

QNX wrote:

I cannot seem to change the priority of a process with either the slay
command or from within a program using the sched_setscheduler function. I
can change the policy but not the priority level. I have tried as a standard
user and as root with no change according to pidin. Am I missing something?
I have used setprio sched_setscheduler with QNX4 on the past with no
problem.

QNX4 (by default) had fixed priorities. QNX6 (by default - and the
correctly so) has floating priorities. You can never affect the
priorities (other than temporarily) of servers, since they will float to
the priority of whichever client sends to them. If this is a server
(i.e. does a MsgReceive) you are trying to change, then that is your
problem. If it is a client (only does MsgSend), then could you post a
snippet of code that demo’s the problem ?

Rennie

Thanks for waking me up! It is a server that does a MsgReceive. I checked
the priority before the MsgReceive to verify the change and it does.
Thanks again for the quick response!

“Rennie Allen” <rallen@csical.com> wrote in message
news:3D887BF1.5080409@csical.com

QNX wrote:
I cannot seem to change the priority of a process with either the slay
command or from within a program using the sched_setscheduler function.
I
can change the policy but not the priority level. I have tried as a
standard
user and as root with no change according to pidin. Am I missing
something?
I have used setprio sched_setscheduler with QNX4 on the past with no
problem.

QNX4 (by default) had fixed priorities. QNX6 (by default - and the
correctly so) has floating priorities. You can never affect the
priorities (other than temporarily) of servers, since they will float to
the priority of whichever client sends to them. If this is a server
(i.e. does a MsgReceive) you are trying to change, then that is your
problem. If it is a client (only does MsgSend), then could you post a
snippet of code that demo’s the problem ?

Rennie