Threads and Cores

BlitzMax Forums/BlitzMax Programming/Threads and Cores

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The application closes right after it is finished... too fast for me to see the threaded result.


Launch it in a DOS box, and the results will remain on the screen.

My results, on a Core 2 Duo E6600 (2.4GHz):

pi = 3.1415926535921401
count = 1000000000
time = 15528
threaded....
pi = 3.1415926535898211
count = 1000000000
time = 12735

So slightly faster, but not by much. :-?
and it looks like whatever calculations are happening here is much faster on the AMD, looking at the results for the 4200+ mentioned above.

Something a bit odd:

If I open the task manager and view the CPU usage history, it's next to nothing before running the program. then in single-threaded mode, XP shows about 50% usage on both cores rather than the expected 100% usage on a single core.
Once the second stage kicks in, both cores go to 100%.