Pin a command to specific CPU cores.
Section: Priority, Scheduling, and CPU Affinity
Run command on selected CPUs
bash
bash
taskset -c 0,1 myserverExplanation
Pin a command to specific CPU cores.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Priority, Scheduling, and CPU Affinity
Show or change affinity for PID
Inspect or update CPU affinity for an existing process.
Show real-time scheduler
Inspect real-time scheduling policy and priority.