Set affinity in task mgr and imagecfg.exe to set affinity for exes

J

John Harkin

Hi,
I've successfully used task mgr to set processor affinsity for exes ,
anyone know what apis it calls to achieve this? Would like to
programatically do this.

Also read that using imagecfg.exe is the way to go to make this
permenanat change to the exes.
I've tried this for my services and it works but it doesn't work for
dllhost.exe. Anyone any ideas why this may be so?

Any alternatives to using imagecfg.exe to make processor affinity
changes permenant?


Regards
John
 
M

Mark-Allen

It actually depends on the language, so check:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;KBHOWTO

and type in affinity.

I know it works in VC and VB but others not sure.

You might also check the development forums under the language you're going to use.

Hope this helps.

--
Mark-Allen Perry
ALPHA Systems, Switzerland
mark-allen AT mvps DOT org

Hi,
I've successfully used task mgr to set processor affinsity for exes ,
anyone know what apis it calls to achieve this? Would like to
programatically do this.

Also read that using imagecfg.exe is the way to go to make this
permenanat change to the exes.
I've tried this for my services and it works but it doesn't work for
dllhost.exe. Anyone any ideas why this may be so?

Any alternatives to using imagecfg.exe to make processor affinity
changes permenant?


Regards
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top