Inspect or update CPU affinity for an existing process.
Section: Priority, Scheduling, and CPU Affinity
Show or change affinity for PID
bash
bash
taskset -cp 0-3 1234Explanation
Inspect or update CPU affinity for an existing process.
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