Re: binding a process to a processor

Robert Love (
17 Apr 2002 20:10:22 -0400

On Wed, 2002-04-17 at 20:04, Lee Chin wrote:
> How do I bind a user process to a processor?

In 2.5, there is the system call sched_setaffinity. It is rather new so
your libraries do not support it - see example code and headers at:

For 2.4, there is not yet such an interface. At the above URL, you can
find a proc-based and a syscall-based interface for setting and
retrieving affinity.

Robert Love

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at