#Hello theads,
PI=3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034...
http://en.wikipedia.org/wiki/Pi
Using multi-thread framework and C++ to implement the calculation.
Input number of digit directly: Print out N digit of PI directly.
Execution: ./s1234567_pi.out [N digits, N < 1000] [M threads = How many thread should be creadted in your program]
Sample usage: ./s1234567_pi.out 10 2
Sample output: PI=3.1415926535 (35ms, calculate with 2 threads)
g++編譯方式:g++ -std=c++1y -pthread -o pi.out *.cpp