Membership Membership:
Latest New User Latest: vpros
Past 24 Hours Past 24 Hours: 0
Prev. 24 Hours Prev. 24 Hours: 0
User Count Overall: 137

People Online People Online:
Visitors Visitors: 68
Members Members: 0
Total Total: 68

NakedMCSE Computer Tech Support Forums

So you have passed all of the exams and you are now out in the real world of windows servers, linux servers and freebsd servers faced with a tech support problem you have never seen before...

Find free online tech support in the forums below, respecting that advice is free, but work beyond advice is not...

The General forum is provided for off topic discussion.

You need a user account to post - please Register or Login.

Online Tech Support Forums
 
  Forum  Microsoft Tech ...  Windows Server ...  Processor Affinity
Previous Previous
 
Next Next
New Post 8/18/2010 11:13 PM
Informative
  Walker
119 posts
www.lairdscomputer.com
10th Level Poster


Processor Affinity 
Modified By Walker  on 8/18/2010 11:14:36 PM)

Sometimes it can be useful to restrict a program to just a single core or processor in a multicore system.  Sometimes you need to modify a program because it won't use all of the available cores.

You can do this programmatically using a switch on the the start command:

cmd.exe /c "start /affinity 3 C:\path\to\your.exe"

The number after /affinity is a binary mask denoting which cores to use expressed as a hex number.  So for dual cores use 3, for tri cores use 7 and for quad cores use F.

To restrict it to a single core set it to just the bit that represents the core - so 1 for 1, 2 for 2, 4 for 3, 8 for 4 etc.

Walker
www.lairdscomputer.com

 
Previous Previous
 
Next Next
  Forum  Microsoft Tech ...  Windows Server ...  Processor Affinity
Send me One Million FREE Guaranteed Visitors