Click here to Skip to main content
15,891,692 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can we decide a processor on which the created thread should run ?
Do we have such finer control over the threads in C++ ?
Posted

 
Share this answer
 
Comments
PrafullaVedante 6-Jun-11 3:13am    
Thanks :)

This is the fastest answer i got on the codeproject .
Timberbird 6-Jun-11 3:23am    
You're welcome! Glad there was a reason to start my work day that early :)
PrafullaVedante 6-Jun-11 4:09am    
:)
Sergey Alexandrovich Kryukov 6-Jun-11 14:56pm    
Well this answer is very incomplete (so I did not vote).
Please see mine.
--SA
Please find my past solution here: How to program multicore[^].


Again, don't interfere in thread/process affinity unless you know exactly what are you doing!


—SA
 
Share this answer
 
Comments
Niklas L 6-Jun-11 15:26pm    
Now that's a bold statement! :) 5!
Sergey Alexandrovich Kryukov 6-Jun-11 15:44pm    
Thank you, Niklas. It's better to understand that affinity can make more harm than benefit. I can see very few applications where it can be useful. One of them is supporting of some "bad" hardware which lack interrupt-driven operation and needs stupid permanent polling.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900