Solved

building to make use of dual processors

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 90
mixString challenge 36 113
Replacement selected text 2 58
firstChar challenge 13 110
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

863 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

19 Experts available now in Live!

Get 1:1 Help Now