Error with task set

I am trying to assign a process to one core of my machine using a set of tasks. But this gives me this error:

$ sudo taskset 0x00000001 -p 20145
Password: 
execvp: No such file or directory
failed to execute -p

What do I need to do to make it work? Thanks

+3
source share
1 answer

Check the help page for the recruitment. Syntax:

taskset [options] -p [mask] pid

therefore, try:

sudo taskset -p 0x00000001 20145
+5
source

Source: https://habr.com/ru/post/1761073/


All Articles