开发者

How to specify a CPU core to run a program in Linux

开发者 https://www.devze.com 2023-01-05 23:33 出处:网络
I need to run two program开发者_Python百科s on the same core of a CPU. The second one always runs on another core because the first program uses 50% of the first core. How can I force Linux to run a p

I need to run two program开发者_Python百科s on the same core of a CPU. The second one always runs on another core because the first program uses 50% of the first core. How can I force Linux to run a program on a core?


schedtool -a 0x1 -e program1
schedtool -a 0x1 -e program2

See the schedtool manual for details.

0

精彩评论

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