I running a simple console based C++ application in XCODE 5.
I have a 2.8GHZ Intel Core i7 processor. If I look at the CPU utilization, following are the stats:
My_Program: 100%
Other Processes: 168%
Free: 537%
Is it possible to utilize the free 537% towards My_Program ? Is it possible to increase the CPU utilization > 100% in XCODE or in Eclipse ?
Thanks, Any suggestions are appreciated.
The only way is to parallelize Your_Program. That is enable to your program to use more at least than one thread (more than one processor if necessary) that is by definition capped at 1 single virtual core of full use (thus 100% of "CPU" that you see on 'top' on linux or equivalent in other system)
If you want to use a single machine I strongly suggest OpenMP to start take acquaintance with parallel programming. The internet is full of tutorials and 'hello world's in different languages.
Parallelizing simple loops with OpenMP is a trivial task on C++, but to master the trick and concepts of parallelization is a life-lasting endeavor.