Expand description

Cooperative Scheduler for Tock

This scheduler runs all processes in a round-robin fashion, but does not use a scheduler timer to enforce process timeslices. That is, all processes are run cooperatively. Processes are run until they yield or stop executing (i.e. they crash or exit).

When hardware interrupts occur while a userspace process is executing, this scheduler executes the top half of the interrupt, and then stops executing the userspace process immediately and handles the bottom half of the interrupt. However it then continues executing the same userspace process that was executing.


A node in the linked list the scheduler uses to track processes

Cooperative Scheduler