开发者

Error with taskset

开发者 https://www.devze.com 2023-01-12 21:43 出处:网络
I\'m trying to assign a process to one core of my machine using taskset. But it gives me this error: $ sudo taskset 0x00000001 -p 20145

I'm trying to assign a process to one core of my machine using taskset. But it gives me this error:

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

What do I have to do to make it wo开发者_开发知识库rk? Thanks


Check the man page for taskset. The syntax is:

taskset [options] -p [mask] pid

so, try:

sudo taskset -p 0x00000001 20145
0

精彩评论

暂无评论...
验证码 换一张
取 消