CpuAffinity.set

Sets the CPU affinity of the calling process.

struct CpuAffinity
static
void
set
(
uint cpu
)

Parameters

cpu uint

index of cpu to run process on

Throws

ErrnoException on failure. Possible errors: - EINVAL: The processor is not currently physically on the system and permitted to the process according to any restrictions that may be imposed by the "cpuset" mechanism described in cpuset(7). - EPERM: The calling process does not have appropriate privileges.

Meta