<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html" />
  <link rel="self" type="application/atom+xml" href="http://ask-leo.com/atom.xml" />
  <id>tag:ask-leo.com,2009://3/tag:ask-leo.com,2009://3.3621-</id>
  <updated>2009-11-18T17:49:50Z</updated>
  <title>Comments for Why won&apos;t my program use more than 25% of the CPU?</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.25</generator>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:35559</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c35559" />
    <title>Comment from Martyn on 2009-06-30</title>
    <author>
      <name>Martyn</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>My issue is a little more intreaging as my work PC locks at 25% CPU useage when running certain large Excel files, but when I interogate Task Manager I find that it seems to be usnig 50% of core 3 and 50% of core 4. I assume this si a little harder to explain, as it is obviously splitting the process across two cores of my quad core, but using all of neither of them. any ideas???</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-06-30T14:01:28Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33756</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33756" />
    <title>Comment from Stephan on 2009-03-01</title>
    <author>
      <name>Stephan</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Kevin, I just realized the same thing as you did: while Excel 2007 can use multiple cores for spreadsheet calculations, it can not when it comes to VBA programs. 2 thoughts on this: 1) maybe it's faster in some VBA applications to convert them to pure spreadsheet calculations 2) I do a lot of Monte Carlo simulation in my VBA programs and here the rule for Multi-processor use would be quite simple: calculate half of the scenarios with 1 processor and the other half with the other - of course there is no way to tell this to Excel - but I am trying now to run 2 instances of Excel in parallel and then combine the results "manually".</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-03-01T10:41:06Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33755</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33755" />
    <title>Comment from Kevin on 2009-02-12</title>
    <author>
      <name>Kevin</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I have the same trouble running Excel VBA code. The "Enable multi-threaded" option does not seem to solve the problem, still 25% the cpu being used. I made a sample VBA program and timed how long it took to run. Here are some comparative results on some of my machines and my colleagues machines(in seconds):<br />
Single core Results<br />
MyDeskTop (2.79GHz, 1GB, XP)	71<br />
MyWorkLaptop (2.2 GHz, 1GB, W2000)	84<br />
JasonComp (P4 3.0 GHz, 1GB, XP)	61</p>

<p>Dual Core Results:<br />
John (1.83 GHz duo, 2GB ram, XP)	59<br />
Akio (2.16 Duo celeron,3.4GB, XP)	49<br />
Kevin (2.4 Core 2 Duo, 3 GB ram, XP)	42	</p>

<p>Quad Core results:	<br />
Tom (3.0 GHz Quad Xeon, XP, 64 bit, 3 GB ram)	36	Kevin (2.83 Quad Core, 3 GB ram, XP 32)	37	Note that the quad core only seems to run at dual core speed?? Why?</p>

<p>Also for all results for the single core, the task manager shows CPU at 100%, for dual core, it shows the CPU at 50%, and for the quad, CPU @ 25%. Bizarre results. The dual core calculates almost twice as fast as the single of the same GHz, but the quad core shows no improvement in calculation speed over the dual core. Why????? I am desperate because I write alot of VBA code and feel I wasted my money with the quad core. Maybe should have gone with a dual and overclocked. How can I speed up Excel VBA so that it runs at a suitable speed on my quad core?<br />
Also, has anyone tried running Excel VBA on vista? any difference in speed? I am grateful for any replies. Thanks, Kevin<br />
<div class="leocomment">I would be shocked if Excel could somehow spread the work of an arbitrary VBA macro acros multiple cores. As I said earlier, how to spread work across multiple processors is one of those incredibly complex problems that simply isn't solvable by today's software.<br />
<div class="leocommentsig">- Leo<br /><span class="leocommentdate">13-Feb-2009</span></div></div></p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-02-13T03:06:10Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33754</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33754" />
    <title>Comment from Paul Higgins on 2009-01-27</title>
    <author>
      <name>Paul Higgins</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Thanks Dimitri.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-27T12:04:26Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33753</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33753" />
    <title>Comment from Dimitris on 2009-01-25</title>
    <author>
      <name>Dimitris</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>Excel 2007 to use all available cores:<br />
Click Office Button, goto excel options, advanced and look for the section formulas. Enable multi threaded calculation</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-25T08:41:09Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33752</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33752" />
    <title>Comment from Paul Higgins on 2009-01-24</title>
    <author>
      <name>Paul Higgins</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Rob, perhaps you could tell us where the setting is? Thanks in advance.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-24T15:44:00Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33751</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33751" />
    <title>Comment from Rob White on 2009-01-20</title>
    <author>
      <name>Rob White</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Excel 2007 has a setting where you can specify how many of the available processors it can use.  Excel 2003 doesn't.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-20T20:23:14Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33750</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33750" />
    <title>Comment from Julian Hicks on 2009-01-20</title>
    <author>
      <name>Julian Hicks</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>P.S. I find the best value CPU speeed per Pound spent [sorry, Dollar spent :-)] comes from the cheaper dual core processors [not Hyperthreaded ones though!]. 2 x 3GHz is more useful and cheaper than 4 x 2.5, for example.  The Excel sample quoted would run at 3GHZ with one CPU unused rather than at 2.5GHz with three CPUs unused.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-20T19:17:54Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33749</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33749" />
    <title>Comment from Julian Hicks on 2009-01-20</title>
    <author>
      <name>Julian Hicks</name>
      <uri>http://unspecified</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://unspecified">
      <![CDATA[<p>One of the confusing things about Windows use of multiple cores is that it 'spreads the work out' [i.e. it uses all the cores], even when it doesn't need to.  WIth only one task running, it only needs to use one of the cores.</p>

<p>Chris; of course your suggestion about affinity will work [and leave one processor free] but that's not what a multi-core application wants!  It would want to run on all four CPUs but you would have limited it to three.  [You don't need to leave one 'free', as the System will run things 'in the right order' anyway; i.e. the dispatcher will prioritise as appropriate].</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-20T19:11:45Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33748</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33748" />
    <title>Comment from Jeff Lentz on 2009-01-20</title>
    <author>
      <name>Jeff Lentz</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>Right on the money, as always, Leo.  When I built my own quad-core at home and was doing processor cooling fan tests, I had to run four separate instances of Prime95 (a single-thread prime number searching program commonly used for "loading" a processor for testing) to get my CPU utilization up to 100%.  Each instance grabbed exactly 25% of my quad-core chip, maxing out just the processor it was running on.</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-20T17:18:25Z</published>
  </entry>

  <entry>
    <id>tag:ask-leo.com,2009://3.3621-comment:33747</id>
    <thr:in-reply-to ref="tag:ask-leo.com,2009://3.3621" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html"/>
    <link rel="alternate" type="text/html" href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html#c33747" />
    <title>Comment from Chris on 2009-01-15</title>
    <author>
      <name>Chris</name>
      <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
      <![CDATA[<p>I never tried this myself, but would setting the affinity of a "multi-threaded" application to use only 3 out of the 4 cores actually listen to you and leave a single core free for other things?</p>

<p>It would be nice too, to see some kind of logo or something on the software that tells you how many cores it's programmed to work for... Like movie ratings you see on DVDs.... wishful thinking.. lol</p>]]>
      <p>A comment on: <a href="http://ask-leo.com/why_wont_my_program_use_more_than_25_of_the_cpu.html">Why won&apos;t my program use more than 25% of the CPU?</a></p>
      <p>
        <a href="http://ask-leo.com">Tech Questions?</a>
        <a href="http://ask-leo.com">Get Answers!</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> ... by Leo Notenboom<br/>
        <a href="http://newsletter.ask-leo.com">Leo's Answers Newsletter</a> -
        <a href="http://ask-leo.com">Ask Leo!</a> in your inbox every week.
      </p>
      <p style="font-size: smaller">All content <a href="http://ask-leo.com/terms.html#copyright">Copyright &copy; 2009</a>.</p>
    </content>
    <published>2009-01-15T16:38:05Z</published>
  </entry>

</feed>
