Solved

2 Processor

Posted on 2003-12-05
6
428 Views
Last Modified: 2010-04-14
Hello everyone,
Little question I have a Gateway server with 2 Pentium II 350 running windows 2000 server, I would like to know in windows how can I check if the 2 processor are rurring and how can I assing specific aplications to each one.

Thanks
Daniel
0
Comment
Question by:jdff
  • 3
  • 2
6 Comments
 
LVL 24

Expert Comment

by:shivsa
Comment Utility
check the task manager, it will both the cpus and what they are doin.
0
 
LVL 24

Expert Comment

by:shivsa
Comment Utility
yes u can assign applications to cpus, but assign it to a particular CPU via the SetProcessAffinityMask() function in c++.
0
 
LVL 24

Expert Comment

by:shivsa
Comment Utility
u can not assign application to specific cpus, your application/program specificially has alters its processor affinifty using the SetProcessAffinityMask()
otherwise it will be at the mercy of the NT process/thread scheduler. Anyway it  is not all that bad. NT does a pretty good job of assigning processes to the least utilized CPU to keep the balance as close to 50/50 as possible.

0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 10

Expert Comment

by:KingHollis
Comment Utility
You can permanently set processor affinity for a non-operating system executable, on both Windows 2000 and Windows NT 4.0, by using the Imagecfg.exe tool from the \support\debug\i386 folder of a Windows NT 4.0 CD-ROM, or the Imagecfg.exe tool from the Windows 2000 Server Resource Kit Supplement One.

NOTE: Do NOT use imagecfg on any kernel operating system files.

To permanently set the processor affinity for your 32-bit executable, open a CMD prompt and type:

imagecfg -a 0xn <Drive:>\Path\yourprogram.exe

where 0xn is the affinity mask. The mask constrains your application to a specific CPU, from 0 - 31, where:

 CPU   MASK
  0    0x1
  1    0x2
  2    0x4
  3    0x8
  4    0x10
  5    0x20
  6    0x40
  7    0x80
  8    0x100
    etc
To set the affinity for "c:\util\Country Codes.exe" to processor 1, I typed:
imagecfg -a 0x2 "c:\util\Country Codes.exe"

and received the following response:

c:\util\Country Codes.exe contains no configuration information
c:\util\Country Codes.exe contains a Subsystem Version of 4.0
c:\util\Country Codes.exe updated with the following configuration information:
    Process Affinity Mask: 00000002
When I launch Country Codes.exe, its' affinity is set to CPU 1.
0
 

Author Comment

by:jdff
Comment Utility
Do you know where I can get the windows 2000 Resource Kit Supplement? Is that free?

Thanks
Daniel
0
 
LVL 10

Accepted Solution

by:
KingHollis earned 250 total points
Comment Utility
Daniel,

http://www.robpol86.com/tutorials/imagecfg.php

Great detailed information. Click on the neon green HERE link once there.

Best of luck.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now