QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Changing Photon application priorities locks up input peripherals |
Ref. No. |
QNX.000009344 |
Category(ies) |
Development, Configuration |
Issue |
We changed a priority of a process from 9 to 13, and found mouse and keyboard failed to work. The priority of mouse is 12, which is the default setting. If we want to change the priority of a PhAB application, where does one set the priority? In abmain.c?
|
Solution |
For setting the priority, look at the setprio() function in Watcom. An application that uses it can be put in startup, or as an initlization function.
From the Watcom docs: ----- setprio - set the priority of a process
Synopsis: #include <sched.h>
int setprio( pid_t pid, int prio );
Description: The setprio() function changes the priority of thread 1 of process pid to priority prio. If pid is zero, the priority of the calling thread is set. -----
For more on this function
See Also: setprio() in Watcom C Library - N to Z |
|