ECE 498OS: OS Design & Implementation

Fall 2026

Repo Creator Bot

You will need to create a GitHub repository using the GitHub repository creator. (Link coming soon.) Please do so at the earliest opportunity.

Assignments

MP 1

Implement a multiprocessor scheduler. Spawn two instances of 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));
    }
}