In a word, the sched_setaffinity does following jobs internalLinux Kernel. 1, Check the status of migrated process. 2, If it is in the running/task_waking status, let the source CPU of this process/thread to do migration. 3, If it is in the run queue of source CPU, let the CPU (...