The default behavior is to run a new command with a given affinity mask

$ taskset [mask] [command] [arguments]

#Usage #2

$ taskset -p [pid]

$ taskset -p [mask] [pid]

You can also retrieve the CPU affinity of an existing task

Comments