Notifications You must be signed in to change notification settings Setting the affinity will cause the thread to migrate to a core on that affinity list if not already running on one. From the ...
use Linux::CPUAffinity; # get affinity of this process my $cpus = Linux::CPUAffinity->get(0); # eg: [0, 1, 2, 3] # other process my $cpus = Linux::CPUAffinity->get ...