Start a new process with affinity for a single CPU

taskset

  • Get or set a process' CPU affinity or start a new process with a defined CPU affinity.
    More information: <https://manned.org/taskset>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

taskset --cpu-list {{cpu_id}} {{command}}

click the source code to copy install taskset on any operating system with command-not-found.com