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.

I ran it three times on my system, it was slower each time for the threaded version:

pi = 3.1415926535921401
count = 1000000000
time = 10578
threaded....
pi = 3.1415926535898211
count = 1000000000
time = 11047


pi = 3.1415926535921401
count = 1000000000
time = 10578
threaded....
pi = 3.1415926535898211
count = 1000000000
time = 11062

pi = 3.1415926535921401
count = 1000000000
time = 10578
threaded....
pi = 3.1415926535898211
count = 1000000000
time = 11125


Also, is there a reason pi is different between each version?