Solved

building to make use of dual processors

Posted on 2002-05-09
3
159 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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