Solved

building to make use of dual processors

Posted on 2002-05-09
3
152 Views
Last Modified: 2013-11-20
I am creating an application for a dual processor PC running Windows NT.  I am developing using VC++ 6.0

What do I need to do to make use of the dual processors on the machine.  When I compile do I need to build the app differently or something?

Thanks for your help, Vida
0
Comment
Question by:vpomona
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 6999333
If you have 2 (or more) processors under NT, you use all of them all the time.  But, unless your app is multi-threaded, it will not experience any changes on its own.

If you build your application with multiple threads, the NT thread scheduler will allocate the active threads among the available CPUs according to it's own logic.  That generally works out well.  So to get your app to use multiple CPUs, create threads.
0
 

Author Comment

by:vpomona
ID: 6999634
Thanks JHance, I am understanding from what you have said is that there is no  directing the compiler to make use of dual processors and that any application running under NT will make use of the dual processors if they are there AND the application is multi-threaded.  Correct?
Thanks Vida
0
 
LVL 32

Expert Comment

by:jhance
ID: 6999662
That is the case.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 64
changeXy challenge 13 57
mapAB Challlenge 35 85
firstChar challenge 13 83
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

13 Experts available now in Live!

Get 1:1 Help Now