Friday, October 26, 2007

Techy: CPU affinity on Linux

How do you assign a process to a specific CPU on a multiprocess Linux box?

Ans: Use "taskset". There are C functions for this command also, which can be see using "man taskset"

No comments: