Hi,
I wrote a small simulation in C++, and upon execution, I noticed that only one of the two cores was doing the actual processing (courtesy of menumeters). Is there a way to take advantage of both cores, ie: is there some sort of compiler flag that I am supposed to use?
This is how I compiled my code:
g++ simulated_annealing.cpp
some background info: I am running everything from within terminal, and I have the latest version of XCode installed (hence I am using gcc 4.01). I am running all this on my Macbook Pro.
(btw, I aplogize if you see this post twice - I originally posted it in the wrong forum)
I wrote a small simulation in C++, and upon execution, I noticed that only one of the two cores was doing the actual processing (courtesy of menumeters). Is there a way to take advantage of both cores, ie: is there some sort of compiler flag that I am supposed to use?
This is how I compiled my code:
g++ simulated_annealing.cpp
some background info: I am running everything from within terminal, and I have the latest version of XCode installed (hence I am using gcc 4.01). I am running all this on my Macbook Pro.
(btw, I aplogize if you see this post twice - I originally posted it in the wrong forum)