In HPC we typically bind processes/threads to cores with cgroup cpusets and/or sched_setaffinity()....