Programming problems in multi-core

Joined
Oct 27, 2008
Messages
4
Reaction score
0
Hi!

I’d like to know if it’s possible forcing a process to be executed in the core I choose. I’ll explain it better: I’m going to have two programs in a dual core and I’d like to send some processes to a core and some other to the other one. I know this can be done with the task manager and in a more durable way with programs like PrioAff or Set Affinity II, but my intention is doing it from the code of the program that I’ll make in C. That is, when I create the processes tell them too in which core they’ll be executed.
I hope someone knows anything about this topic and can help me in it.

Thanks in advanced.

P.S. Sorry for my English and I hope someone can understand me.
 
As I've seen many visits I'll post what I've found:
There are some functions like SetThreadAffinityMask(), SetProcessAffinityMask(),... that do more ore less what I want.
I've seen too there is a library called TPL that can be used for these things too. Does anyone know something about it? If it's easier or more difficult..
 

Latest threads

Back
Top