LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Multi-core support in Linux (https://www.linuxquestions.org/questions/programming-9/multi-core-support-in-linux-841486/)

arielsegal 10-31-2010 02:45 AM

Multi-core support in Linux
 
Is there any Linux API that will let me control on what core will a thread run?
If not, do I have to use assembly language?

neonsignal 10-31-2010 07:13 AM

My understanding is that you can use pthread_setaffinity_np to do this (affinity being the term used to indicate scheduling across multiple processors).

syg00 10-31-2010 07:48 AM

Bad idea - really bad idea to design this into code.

Technology continues to evolve - as do programming paradigms. Better that this be a "late binding" decision - cgroups for example.


All times are GMT -5. The time now is 11:30 AM.