比如:让一个进程只运行在某个cpu上或者让一些进程只运行在除了某个cpu以外的cpu上等等。
那绑核有什么作用呢?...CPU_SET(cpu, set) CPU_SET_S(cpu, sizeof(cpu_set_t), set)
.........(__cpu)] |= __CPU_MASK(__cpu); \
} while (0)
.........cpu_0:1805000, cpu_1:1805000, cpu_2:1805000, cpu_3:1805000,
cpu_4:1920000, cpu_5:1920000, cpu_6:2600000..., cpu_7:2600000,
after sort
cpu_6:2600000, cpu_7:2600000, cpu_4:1920000, cpu_5:1920000,
cpu_2:1805000