Note that there are some explanatory texts on larger screens.

plurals
  1. POprocessor usage (force full usage)
    text
    copied!<p>First of all, I did not study computer science, and I teached programming my self, said that;</p> <p>I have a C# program that runs heavy power flow simulations for very large demand profiles. I use a laptop with an intel i7 processor (4 cores -> 8 threads) under windows 7. When I run the simulations the processor ussage is arround 32%.</p> <p>I have read other threads about process prority, and I have more or less clear that when something runs on the OS, it runs at full speed, but the OS keeps the interfaces responsive (is this correct?)</p> <p>Well I want to "completely flood the processor" with the simulation; get a 100% of usage (if possible) ?</p> <p>Thanks in advance.</p> <p>Ref#1: <a href="https://stackoverflow.com/questions/5354420/is-there-a-way-of-restricting-an-apis-processor-resource-in-c">Is there a way of restricting an API&#39;s processor resource in c#?</a></p> <p>Ref#2: <a href="https://stackoverflow.com/questions/2232801/multiple-processors-and-performancecounter-c-sharp">Multiple Processors and PerformanceCounter C#</a></p> <p>EDIT: piece of code that calls the simulations after removing the non relevant stuff</p> <pre><code>while ( current_step &lt; sim_times.Count ) { bool repeat_all = false; power_flow( sim_times[current_step] ); current_step++; } </code></pre> <p>I know it is super simple, and it is a while becausein the original code I may want to repeat a certain number of steps.</p> <p>The <code>power_flow()</code> function calls a third party software, so I guess is this third party software the one that should do the multy threading, isn't it?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload