Quantcast
Channel: Programming Archives - SysTutorials
Viewing all articles
Browse latest Browse all 130

How to set one task’s CPU affinity quickly?

$
0
0

How to set one task’s CPU affinity quickly? 1, Get this task’s ID # taskset -pc PID 2, Set this task’s CPU affinity # taskset -c affinity ./task Answered by harryxiyou. There is also another format # taskset -pc affinity pid For example: set process with PID 3783 to CPU 15 # taskset -pc 15 […]

The post How to set one task’s CPU affinity quickly? appeared first on SysTutorials.


Viewing all articles
Browse latest Browse all 130

Trending Articles