Log in

View Full Version : How to make use of both the processors in Dual processor


aphanri
7th May 2010, 07:49
s (http://kienvangjsc.com/chuyennhatrongoi.html)upport.microsoft.com/kb/896256 (http://support.microsoft.com/kb/896256)

I am using Intel Core 2 duo processor. My question is, whenever i run my application i would like to know whether my software is using both the processors or a single processor. How do i know it? Is there any way to see that? If it is using single processor, how to make use of both the processors? Please help me out. I need this to improve my software performance.

kypec
7th May 2010, 09:21
What operating system are you using? In Windows press Ctrl+Alt+Del and pick Task Manager from menu. There you can see how much each core is loaded (percentage shown).
In order to maximize usage of every core the software application must be written so that it supports multithreading. You can't just force single-threaded application to run in multiple threads/on multiple cores as such.

nevcairiel
7th May 2010, 09:23
First off, your software actually needs multiple threads (and a good threading design), to actually be able to use multiple processors. If thats the case, you can always just fake a bit of CPU load, and look at the usage graph. You will see if both are busy, or just one.

Craftmaster
9th May 2010, 17:26
I have both a 2 core & a 4 core processor. I put the free sidebar / gadget on my desktop & netbook and I can easily see all cores working. You can get it free on the Windows 7/vista website. Here is what it looks like.

LoRd_MuldeR
10th May 2010, 00:28
My question is, whenever i run my application i would like to know whether my software is using both the processors or a single processor.

ProcessExplorer (http://img406.imageshack.us/img406/9643/procexpthreads.png) ;)

As soon as a process (application) has more than one thread that is actually doing work (see "CPU" column), then the OS scheduler can distribute work among multiple cores:

http://img406.imageshack.us/img406/9643/procexpthreads.png


And if only one CPU-intensive application is running on your system, then the CPU history gives a good indication of multi-processor usage:

http://img688.imageshack.us/img688/7452/procexpcpu.png