Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

building to make use of dual processors

Posted on 2002-05-09
3
Medium Priority
?
171 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

926 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