The QNX documentation says a new thread inherits the scheduling policy and priority from the parent thread it was started from.
What if I start a new process from shell or from an init-script? Where does the scheduling policy and priority of the new process/thread come from?
The priority of the new process will be set to 10
. This is described by QNX at the following link:
Under QNX Neutrino, processes will run at priority 10 by default. So when you open a terminal and run a program, unless it takes steps to modify it's priority, it will be running at priority 10.
The scheduling policy instead will be set to the Adaptive scheduling
until you will change it. I found this information in two different links ( QNX doc and Tempus documentation). In particular the QNX documentation reports:
Adaptive scheduling is the default scheduling method for programs created by the Shell.