I would like to programmatically isolate my process to run on a core different from everything else (including the OS), to reduce context switching. I found this similar question:
Whole one core dedicated to single process
And the accepted answer dated 2011:
https://stackoverflow.com/a/13585364/997112
mentions:
The alternative method is to use cpusets which is way more elegant and dynamic but suffers from some weaknesses at this point in time (no migration of timers for example) which makes me recommend the old, crude but effective isolcpus parameter.
Note that work is currently being done by the Linux community to address all these issues and more to give even better isolation.
Has there been any update? Is it possible to emulate isolcpus from a Linux C API function?
My C++ environment is CentOS 7 and GCC 5.2