Optimizing in OS X

I am trying to speed up a relatively simple but computation heavy program which will be run and compiled using OS X 10.5

The version of GCC is:

i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)

When I run the program I notice that less than 20% of the CPU is being used. Where is the most likely place for the bottle neck if it isn't the cpu? Is there anything that I can do about this?

Thanks,
JI
If it is not using all the cpu, it means it's waiting for some IO (files, network,..) or delay function.

Note also that on multicore processors, in windows at least, if your program only uses one thread, the CPU usage display for N cores will be capped at 100/N% at best
Topic archived. No new replies allowed.