Sign in with
Sign up | Sign in
Your question

Locking process to core in linux

Last response: in CPUs
Share
Anonymous
a b à CPUs
July 30, 2010 5:45:03 PM

Hello,
How can i lock a process to a particular core of the processor (In Linux 2.6 kernel)
July 30, 2010 8:04:00 PM

Quote:

How can i lock a process to a particular core of the processor (In Linux 2.6 kernel)


Look at this article, it might be able to help you:

http://www.cyberciti.biz/tips/setting-processor-affinit...

A term often used when speaking of locking a process to a cpu/core is "affinity". That could also help when doing research for this.
m
0
l
Related resources
August 12, 2010 3:52:28 PM

thanks ricno... that helped...
I could find a solution to it.
sched_setaffinit() in sched.h
it works:-)
m
0
l
August 12, 2010 3:58:48 PM


Glad to be able to help. Good luck!
m
0
l
!