?
Solved

2 Processor

Posted on 2003-12-05
6
Medium Priority
?
436 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

 
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 1000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

650 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