|(require cpu-affinity)||package: cpu-affinity|
This library contains operations to get and set the CPU affinity mask for a given process on Linux or Windows systems. It does not work on OS X.
Returns the CPU affinity mask (represented as an integer in which the bits correspond to CPUs) for a given process identified by its pid.
Sets the CPU affinity mask for a process identified by its pid to mask. The mask argument represents an affinity mask as an integer in which the bits correspond to the CPUs.