Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvments to the scheduler #170

Open
8 tasks
DrDeano opened this issue Jun 20, 2020 · 0 comments
Open
8 tasks

Improvments to the scheduler #170

DrDeano opened this issue Jun 20, 2020 · 0 comments
Labels
arch: aarch64 Affects the aarch64 port arch: none Affects common code across architectures arch: x86 Affects the x86 port arch: x86_64 Affects the x86_64 port enhancement New feature or request

Comments

@DrDeano
Copy link
Member

DrDeano commented Jun 20, 2020

Currently, the initial scheduler is round robin and preempts the current running task when the RTC fires a interrupt. We would like to improve this by:

  • Adding time slices to tasks, e.g. will preempt after 10ms instead of whatever the interrupt is set to.
  • Add the ability for a task to preempt itself, e.g. via a syscall.
  • Maybe add priorities to tasks
  • Only run the idle task when there are no tasks to run
  • Add task termination
  • Add more queues for:
    • Ready queue
    • Waiting: I/O / Sleep
@DrDeano DrDeano added enhancement New feature or request arch: x86 Affects the x86 port arch: none Affects common code across architectures arch: aarch64 Affects the aarch64 port arch: x86_64 Affects the x86_64 port labels Jun 20, 2020
@SamTebbs33 SamTebbs33 added this to the v0.3 milestone Jul 8, 2020
@SamTebbs33 SamTebbs33 removed this from the v0.3 milestone Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch: aarch64 Affects the aarch64 port arch: none Affects common code across architectures arch: x86 Affects the x86 port arch: x86_64 Affects the x86_64 port enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants