You will need to create a GitHub repository using the GitHub repository creator. (Link coming soon.) Please do so at the earliest opportunity.
fibonacci_thrfn given below. Both threads should execute simultaneously on a two-CPU system.
#include "console.h"
unsigned int fibonacci(unsigned int n) {
if (n <= 1)
return 1;
return fibonacci(n-1) + fibonacci(n-2);
}
void fibonacci_thrfn() {
for(unsigned int i = 0; ; i++) {
cprintf("Fib: %u = %u\n", i, fibonacci(i));
}
}