Skip to content

scheduling yield #10

@paked

Description

@paked

we need some sort of yield function if we want to do things like #8, or some of the features in #7.

here's how i imagine this working:

  1. add a new "yield" syscall
  2. in SVC_Handler_C call some logic which chooses the next process to be scheduled
  3. trigger the PendSV interrupt as usual

NOTE:

will need to be careful of:

  1. the race condition between the two different points of scheduling
  2. starvation of processes, if yield consistently happens near the end of a time slice (maybe this has to be fixed by moving away from round robin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions