User guide
sa
sa — set process affinity
Changes the affinity mask of a process. The affinity mask of a process specifies
the processors on which the process can run.
Syntax
sa
process_id affinity_mask
Arguments
process_id
Specifies the process ID (PID) of the process to be modified.
affinity_mask
Specifies the new affinity mask, which indicates on which processors the process
can run. Bits 0 and 1 of the mask correspond to processors 0 and 1, respectively.
Example
>>> memtest -p 0 &
>>> ps | grep memtest
00000025 001a9700 2 23691 00000001 0 memtest ready
>>> sa 25 2
>>> ps | grep memtest
00000025 001a9700 2 125955 00000002 1 memtest running
>>>
See Also
ps, sp
13–78 Console Commands