Set CPU Affinity with muliple value

That mean new CPU affinity list is [0,1,2,3]

$ taskset -cp 0-3 14846
pid 14846's current affinity list: 1
pid 14846's new affinity list: 0-3

You can set single CPU with the following command:

$ taskset -cp 5,8,12 14846
pid 14846's current affinity list: 0-3
pid 14846's new affinity list: 5,8,12

That mean new CPU affinity list is [5,8,12]

Comments