Skip to contentSkip to conversation

binding a process to a processor

DISCUSSION Lee Chin 2 participants 2 messages Apr 18, 2002

lore
Share & tools
lore

Lee Chin

author
#0 lore raw

Hi
How do I bind a user process to a processor?

Thanks
Lee

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

#1 lore raw
Quoted 1 line · Lee Chin

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:

ftp://ftp.kernel.org/pub/linux/kernel/people/rml/cpu-affinity

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