This function is currently only available in QNX 4. It returns a list of two arrays of 32 elements. The first array contains the average processor load at each priority level. The number are relative to one another and have a sum of 1. The second array contains the number of processes in the READY state at each priority level.
info = qnx_osstat(0);
load = car(info);
for(i=0;i<32;i++)
{
princ(format("%2d. %2f\n",i,aload[i] * 100));
}