Use C code and Multi-threading to calculate the 1e8 th term of Fibonacci Series in one second
C语言和多线程在一秒内计算斐波那契数列第一亿项
Get multithreading.c, then, on a Linux or Unix-like system:
gcc -o FM multithreading.c -lgmp
./FM 100000000
Result (On Macbook Pro 13.3’ 2019):
Elapsed time: 665 milliseconds