ps_get_cpu_affinity() queries the
CPU affinity of
a process. ps_set_cpu_affinity() sets the CPU affinity of a process.
Arguments
- p
Process handle.
- affinity
Integer vector of CPU numbers to restrict a process to. CPU numbers start with zero, and they have to be smaller than the number of (logical) CPUs, see
ps_cpu_count().
Value
ps_get_cpu_affinity() returns an integer vector of CPU
numbers, starting with zero.
ps_set_cpu_affinity() returns NULL, invisibly.