[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

2 Processor

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
jdff
Asked:
jdff
  • 3
  • 2
1 Solution
 
shivsaCommented:
check the task manager, it will both the cpus and what they are doin.
0
 
shivsaCommented:
yes u can assign applications to cpus, but assign it to a particular CPU via the SetProcessAffinityMask() function in c++.
0
 
shivsaCommented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

 
KingHollisCommented:
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
 
jdffAuthor Commented:
Do you know where I can get the windows 2000 Resource Kit Supplement? Is that free?

Thanks
Daniel
0
 
KingHollisCommented:
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now