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? |
My understanding is that you can use pthread_setaffinity_np to do this (affinity being the term used to indicate scheduling across multiple processors).
|
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. |