Skip to content
No description, website, or topics provided.
C Shell Makefile
Branch: master
Clone or download
chiluk Merge pull request #2 from DuaneOBrien/master
Removes Netflix from the OSSLifecycle badge txt
Latest commit 082ea77 Jul 3, 2019


OSS Lifecycle

Fibtest is a small C application that runs the fibonacci sequence and reports how many iterations it completed.

It spawns fast threads and slow threads. Fast threads run the sequence as fast as possible. Slow threads run 100 iterations and then sleep for 10ms. Each thread is pinned to it's corresponding cpu (thread 0 is on CPU 0, thread 2 on CPU 2 etc...).

By default fibtest spawns one fast thread on CPU 0, and a number of slow threads equal to the number of CPUS minus the number of fast threads

Running fibtest

$ ./runfibtest 1; ./runfibtest

runfibtest optionally takes an arguement which is the total number of threads to spawn. With no argument it will spawn one fast thread and the number of threads equal to the number of processors.

It returns the number of iterations of the fibonacci sequence it was able to accomplish, as well as how long it was throttled and the corresponding cpu usage that was used.

Code of Conduct

This project is governed by the Contributor Covenant v 1.4.1


Apache License Version 2.0

You can’t perform that action at this time.