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

Thread wakeup: replace serial wakeup with tree wakeup #57649

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kpamnany
Copy link
Contributor

@kpamnany kpamnany commented Mar 5, 2025

This is still WIP.

Every time a task is scheduled (and in numerous other situations), we would like to ensure that at least one thread is awake to run the task. Currently, we wake all threads, via a serial loop in wakeup_thread(). This scales poorly and is inefficient. #56475 reworks this with a "spinner" thread approach. This PR tries a different approach: continue to wake up all threads, but via a tree wakeup rather than serially.

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