-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Feature Request] Dynamic Prioritization #1134
Comments
Please create a post in the FreeRTOS Forums explaining your feature request in more detail, possibly with sequence diagrams to help us understand your request. |
This time i'm sorry. You can find the detais here: https://github.com/svenbieg/Scheduler I'm happy to see You again, looking forward to my Christmas holidays. My kernel took me two weeks, it's really easy with know-how. Good luck, to the whole FreeRTOS-team! I'm really sorry i don't have time at the moment, Sven Bieg |
Thank you for sharing your implementation. I assume you do not need anything from FreeRTOS for your implementation as your implementation does not depend on FreeRTOS. |
Semaphore sounds like a german joke. |
You are right, exclusive mutual exclusion may sound funny at first, but it is exactly what You are missing. |
FIFO-task-management |
Okay, i keep interrupts enabled and only block the scheduler when You call Mutex::Lock(TaskPriority::High). |
The problem is to define the priority on a task-level. Every task can call a critical function, so the priority has to be raised there.
My solution is a task-lock that works with a mutex. The task is marked exclusive, so interrupts are kept disabled after the task-switch until the task-lock is released.
You can take a look at the heap for example. It is used by every task and is a critical function. I'm using a task-lock there.
Best regards,
Sven Bieg
The text was updated successfully, but these errors were encountered: