Locking process to core in linux

Hello,
How can i lock a process to a particular core of the processor (In Linux 2.6 kernel)
4 answers Last reply
More about locking process core linux
  1. You can change the priority with the "nice" command. But not sure how to lock it to a particular core.

    http://linux.about.com/library/cmd/blcmdl1_nice.htm
    ^^^ nice command
  2. 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-affinity-certain-task-or-process.html

    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.
  3. thanks ricno... that helped...
    I could find a solution to it.
    sched_setaffinit() in sched.h
    it works:-)
  4. Glad to be able to help. Good luck!
Ask a new question

Read More

CPUs Core Processors Linux