|
"Marco Wu" <alwaysmarco@hotmail.com> wrote in message
news:inbhgu$60$1@fred.mathworks.com...
> I am using Win7 64 bit and Matlab 2009 64 bit
> My computer is a quad core computer. Each core only ran ~25% when a heavy
> data analysis was running. How I can fix it?
There may be nothing TO fix.
If your computation is processor bound, then finding a way to multithread
your problem MAY speed things up. It may not, if the overhead of creating
and managing the threads outweighs the benefit you gain from threading.
If your computation is memory bound or bound by something other than
processor (like disk access or network) then threading the problem will
result in multiple threads all trying to hit the memory at once rather than
one thread.
In my opinion, you're asking the wrong question. The question you should be
asking is "Is my code fast enough?" and if the answer is yes, you're done.
If the answer is no, then investigate where the bottlenecks in your code are
located (use the Profiler) and attempt to remove them. Threading is one way
to speed up bottlenecks, but it's not the only way.
--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
|