Multi CPU Dedicate for each instance.

  • Thread starter Thread starter bhu
  • Start date Start date
B

bhu

Hi
If we have to run multiple instance of a exe and each instance need to have
its own CPU assignment , how can we do it.
Ex:
Let us say there is a Master EXE master.exe which creates Processes say 3
instance at a time.
each process is calling slave.exe.
This machine will have 4 processors.
so if we see in the task manager we will see 3 instance of slave running,
but it could be running under one CPU not sure, so i want to dedicate cpu2
to instance1, cpu3 to instance2 and cpu4 to instance3, is this possible ?
any articles, links will be helpful
thanks
bhu
 
bhu said:
If we have to run multiple instance of a exe and each instance need to
have its own CPU assignment , how can we do it.

Are you build a native or managed application.

In native applications, you call SetProcessorAffinityMask().

I'm not sure what your options are if you target the .Net platform.

Regards,
Will
 
Back
Top