I ran it three times on my system, it was slower each time for the threaded version:
Also, is there a reason pi is different between each 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?