qnx_osstat

Gamma: Version 4.0
Prev |  | Next

# `qnx_osstat`

`qnx_osstat` -- lists processor loads and number of READY processes at each priority level.

## Syntax

    qnx_osstat (node)

## Arguments

`node`

  The node for which to collect statistics. Zero indicates the current node.

## Returns

A list of two arrays of 32 elements.

## Description

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.

## Example

        info = qnx_osstat(0);
        load = car(info);
        for(i=0;i<32;i++)
        {
           princ(format("%2d. %2f\n",i,aload[i] * 100));
        }

## See Also

`qnx_osinfo`

Prev | Home | Next
`qnx_osinfo` | Up | `qnx_proxy_attach`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.