CS 452/652 Winter 2024 - Lecture 3

Polling Loops, Kernel, Tasks

Jan 16, 2024 prev next

Polling Patterns

Concurrency

Multi-Tasking

Kernel

Generic Kernel Loop

    void kmain() {
      initialize();  // includes starting the first user task
      for (;;) {
        currtask = schedule();
        request = activate(currtask);
        handle(request);
      }
    }

Task State

Memory Management

Programming