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

Questions About Priority Implementations #23

Open
ZhennanWu opened this issue Jan 7, 2023 · 0 comments
Open

Questions About Priority Implementations #23

ZhennanWu opened this issue Jan 7, 2023 · 0 comments

Comments

@ZhennanWu
Copy link

ZhennanWu commented Jan 7, 2023

Currently the guarantee we have is "A higher priority will cause the task to be run sooner". It would be helpful to document more details about this priority mechanism. The most pressing issue in my mind is that:

  1. How strict is this priority followed? It could be a heuristic, or a guaranteed order without preempting existing running tasks, or a guaranteed order that would preempt another low-priority running task if the executor is busy, or to preempt every other low-priority tasks no matter what (tho this would be unlikely).
  2. If it is not a heuristic, does it cause priority inversion problem? If N_cpu high-priority spin-lock-style tasks are waiting for the result of a low-priority task, will the system progress?

The priority inversion problem in my view is an important one, since it has a dramatic impact in system design choices.

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

No branches or pull requests

1 participant