Hi. I'm novice at parallel programming.
I would like to know if there is some possibility to set on which fixed cores of multi-core processor I want to execute my program?
I have problems then try to use less threads than logical cores are at Intel Xeon X5550, for example 5 threads. Execution time depend dramatically of on which cores OS run program. And will be good if I in some way can control it.
Problem was closed.
I declared time counter in procedure which are run parallel and forgot about it. This leads to increase single thread execution time into 2 times and lose in speed up, when I use many threads.
Sorry for trouble.
Dmitriy, may be you, or somebody else, can help me again. I should run specific different tasks on s...task_scheduler_observer::on_scheduler_entry() I can't determine to which task current thread correspond. I can determine threadId, but this is first time then thread have this Id (right?) and I can't set correspondence between task and threadId before observer.
I try to don't use observer and do code from its into begin of operator() of correspondent task, but I lose 50% of speed. (Actually this is will be intresting for me too - why observer work faster).
So, can somebody help me with such problem?