Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a process, PID 7150.

I want to assign the process to core #4 of my system. (Core numbering starts with zero, so the fourth core should be core #3)

I know I can do this by using Taskset. However, whenever I try, I get the following:

steve@rosie:~$ taskset -p 7150
pid 7150's current affinity mask: f
steve@rosie:~$ taskset -c 3 -p 7150
execvp: No such file or directory
failed to execute -p

What am I doing wrong?

share|improve this question
up vote 0 down vote accepted

The proper format for the command is:

taskset -pc 3 7150
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.