cpubind

Purpose:

Set/get current CPU affinity for a running task.

Enter:

cpubind <-t | -p> [-m cpumask]

Where:

-t

Specify the name of the process (NOT the QNX name attached to the process); mutually exclusive with -p

-p

Specify the process ID of the task; mutually exclusive with -t

-m cpumask

Specify the bitwise mask of the CPU to run task on 1 bit per CPU, i.e.:
1=1st cpu
2=2nd cpu
3=1st & 2nd cpu (if no -m is supplied the current cpu mask will be returned)

Example:

cpubind -t processID -m 1

Notes:

Specify only -t OR -p option, not both. If both supplied, -t will be ignored. When using the -t option, it will affect ALL tasks that have a field that matches the task name. A maximum of 32 tasks can be affected. A maximum of 32 processors is supported.

See Also: