Oooh.. it runs on OS X too... without any changes..
...except that I removed a zero from the loop, cuz it's not a fast CPU and I didn't want to wait all night for it to finish.
Threading is much faster on this G4 in relation to the Athlon. Or it's an OS X thing...
Executing:test_01 pi = 3.1415926535904264 count = 100000000 time = 15311 threaded.... pi = 3.1415926535896825 count = 100000000 time = 12083
...except that I removed a zero from the loop, cuz it's not a fast CPU and I didn't want to wait all night for it to finish.
Threading is much faster on this G4 in relation to the Athlon. Or it's an OS X thing...