Solved

2 Processor

Posted on 2003-12-05
6
430 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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…
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
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…

816 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

8 Experts available now in Live!

Get 1:1 Help Now