How sched_setaffinity works inside of Linux Kernel - Sys...
In a word, the sched_setaffinity does following jobs internal Linux 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