I work with a single processor with hyperthreading activated
I have 2 questions :
- I want to launch a thread on the cpu 2 with maximum 63 priority (in order to get the same performance than I have on a single processor without any OS). Most of the time my thread is automatically launch on cpu2, but because I got some freezes, I suspect that sometime my thread is launched on cpu1. I want to force it on cpu 2 (or on the cpu that does not run the OS scheduler).
Processor affinity mask seems not to be in the thread attributes, which command should I use to launch the thread on the right cpu ?
- With hyperthreading (assuming there is not two real processors), will my cpu2 thread will have the priority of use on the sharing of the processor internal ressources (in concurrence with other threads of cpu1). Should I look to the intel documentation (in the case the processor has its own processor ressource sheduling), or does the Neutrino can answer to the question ? I guess that cpu1 may have the internal ressource priority, is that right ?, in this case how could I cleanly swap the processors to set my thread on cpu1 ?
Thanks for your help