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

NP scheduler should not change the levels of reactions based on deadlines #2433

Open
erlingrj opened this issue Nov 8, 2024 · 1 comment
Labels
c Related to C target

Comments

@erlingrj
Copy link
Collaborator

erlingrj commented Nov 8, 2024

Currently the NP scheduler will modify the levels of reactions based on deadline and inherited deadline thus changing the execution order.

@erlingrj erlingrj added the c Related to C target label Nov 8, 2024
@edwardalee
Copy link
Collaborator

Actually, it is the GEDF scheduler that does this. PR #2442 addresses this by removing the feature that automatically selects the GEDF scheduler when deadlines are present. Now, you have to explicitly select GEDF to get that scheduler. But the GEDF scheduler will rarely be the best choice on a multicore machine because it sacrifices parallelism.

A better approach would be to use the NP scheduler with layered scheduling. An alternative that might simplify layered scheduling, I think, would be to adjust the NP scheduler so that it assigns reactions with earlier deadlines to lower numbered worker threads, and then statically give lower-numbered worker threads higher priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c Related to C target
Projects
None yet
Development

No branches or pull requests

2 participants