Skip to content

About

Use C code and Multi-threading to calculate the 1e8 th term of Fibonacci Series in one second / C语言和多线程在一秒内计算斐波那契数列第一亿项

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

One-Second-Solve-Hundred-Millionth-Fibonacci-Series

Use C code and Multi-threading to calculate the 1e8 th term of Fibonacci Series in one second

C语言和多线程在一秒内计算斐波那契数列第一亿项

简体中文介绍

Usage

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

Algorithm

简体中文介绍

About

Use C code and Multi-threading to calculate the 1e8 th term of Fibonacci Series in one second / C语言和多线程在一秒内计算斐波那契数列第一亿项

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages