Solved

2 Processor

Posted on 2003-12-05
6
431 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
ID: 9887205
check the task manager, it will both the cpus and what they are doin.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9887213
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
ID: 9887220
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 10

Expert Comment

by:KingHollis
ID: 9887323
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
ID: 9890474
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
ID: 9891197
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exchange server 2003 sp2 local queue frozen mail 3 368
Just changed my 2000 Server DCs IP now what 3 405
Recreate New ADC 1 284
Windows Explorer and WinZXip 4 525
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…
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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