Skip to content

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 <[email protected]>
@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.

1 participant