Solved

building to make use of dual processors

Posted on 2002-05-09
3
161 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
[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
  • 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 174
Expand data scrubbing tool 13 36
fizzArray  challenge 1 109
Problem to App 4 122
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.

696 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