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

[feat] implement cooperative scheduling budget #287

Open
JonasKruckenberg opened this issue Feb 11, 2025 · 0 comments
Open

[feat] implement cooperative scheduling budget #287

JonasKruckenberg opened this issue Feb 11, 2025 · 0 comments
Labels
enhancement New feature or request sys: async Related to the scheduler or task subsystems

Comments

@JonasKruckenberg
Copy link
Owner

Given that blocking in k23's scheduler is even less desirable that is the case for "hosted" async runtimes like Tokio we should take all steps to prevent tasks from blocking for too long. To this end we should implement a mechanism like tokio's cooperative scheduling budget where tasks periodically decrease a "budget" counter and when it is exhausted yield back to the runtime. This would be virtually identical to the epoch based system used by the WASM engine but for kernel tasks and futures.

@JonasKruckenberg JonasKruckenberg added enhancement New feature or request sys: async Related to the scheduler or task subsystems labels Feb 11, 2025
@JonasKruckenberg JonasKruckenberg changed the title feat: implement cooperative scheduling budget [feat] implement cooperative scheduling budget Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sys: async Related to the scheduler or task subsystems
Projects
None yet
Development

No branches or pull requests

1 participant