Solved

choosing the processor for a program!

Posted on 2000-03-02
3
205 Views
Last Modified: 2010-04-02
I have a NT server with 4 processors. I need to know how to start up programs from my TrafficCop on each separate processor so the four programs run parallel to each other. I have noticed that we are not using the full potential, let alone all of the processors. Is it up to my program to decide which processors to run on or is it up to the OS? How is this performed?
0
Comment
Question by:rrrrr80
[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 Comments
 
LVL 3

Expert Comment

by:Iexpert
ID: 2576875
Obviously the OS must deal with it.
If a program supports running seperate instances of itself then
doing this allows the OS to spread them out over multiple processors.
If only one intance of a program can be started, then the program
must be explicitly written to use multiple threads, and again the
OS can share these out amoung the processors.
In summary it depends on how the programs are written.
0
 
LVL 32

Accepted Solution

by:
jhance earned 40 total points
ID: 2576906
See the:

SetProcessAffinityMask()

in the SDK if you want to specify.  Otherwise NT will decide for you based on load.
0
 

Author Comment

by:rrrrr80
ID: 2589132
That is exactly what I was looking for!
Sorry it took me this long to get back to you! thanks again for the info!
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

739 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