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

Too many tasks having deadline of 0 initially, or having the exact same deadline #1

Open
Akashem06 opened this issue Jun 15, 2024 · 0 comments

Comments

@Akashem06
Copy link
Owner

I noticed that having 3+ tasks initialized with a deadline of 0 will cause one to get skipped because of the logical statement:

if (task_list[i].deadline == 0) {
task_list[i].deadline = (task_list[i].deadline + task_list[i].period) % UINT32_MAX;
}

I believe this can be reworked so that the algorithm can update the deadlines to ensure all tasks fire at a consistent period. This could be modified to task_list[i].deadline = (task_list[i].deadline + 1) % UINT32_MAX;

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