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

Lazily remove exited tasks from run queue #1095

Open
wants to merge 1 commit into
base: theseus_main
Choose a base branch
from

Conversation

tsoutsman
Copy link
Member

Avoids locking all the schedulers on task exit.

This PR also technically changes the round robin scheduler algorithm, as blocked tasks are now moved to the end of the run queue. Previously, the blocked tasks would be kept in place, aside from the task at the front of the queue which would be switched with the next runnable task using swap_remove_front.

Avoids locking all the schedulers on task exit.

This PR also technically changes the round robin scheduler algorithm, as
blocked tasks are now moved to the end of the run queue. Previously, the
blocked tasks would be kept in place, aside from the task at the front of
the queue which would be switched with the next runnable task using
`swap_remove_front`.

Signed-off-by: Klim Tsoutsman <klim@tsoutsman.com>
@tsoutsman tsoutsman changed the title Lazily remove exited tasks from run queue in scheduler Lazily remove exited tasks from run queue Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant